diff --git a/test_apps/test_app/config/contracts.js b/test_apps/test_app/config/contracts.js index 5af96162..8b4a36bc 100644 --- a/test_apps/test_app/config/contracts.js +++ b/test_apps/test_app/config/contracts.js @@ -66,8 +66,8 @@ module.exports = { file: "./some_folder/test_contract.sol", args: [1000] }, - Owned: { - file: "https://github.com/status-im/contracts/blob/151-embark31/contracts/common/Owned.sol", + StandardToken: { + file: "https://github.com/status-im/contracts/blob/151-embark31/contracts/token/StandardToken.sol", deploy: false }, SimpleStorageWithHttpImport: { diff --git a/test_apps/test_app/contracts/token.sol b/test_apps/test_app/contracts/token.sol index cc595a37..8c6e5d29 100644 --- a/test_apps/test_app/contracts/token.sol +++ b/test_apps/test_app/contracts/token.sol @@ -63,7 +63,7 @@ contract Token { function safeToAdd(uint a, uint b) internal pure returns (bool) { return (a + b >= a); } - function isAvailable() internal pure returns (bool) { + function isAvailable() public pure returns (bool) { return false; } } diff --git a/test_apps/test_app/test/http_contract_test.js b/test_apps/test_app/test/http_contract_test.js index 98b2d34e..67c35016 100644 --- a/test_apps/test_app/test/http_contract_test.js +++ b/test_apps/test_app/test/http_contract_test.js @@ -5,7 +5,7 @@ const assert = require('assert'); describe('http contracts', () => { it('should have downloaded the file in .embark/contracts', (done) => { - const contractPath = '.embark/contracts/status-im/contracts/master/contracts/identity/Identity.sol'; + const contractPath = '.embark/contracts/status-im/contracts/151-embark31/contracts/token/StandardToken.sol'; fs.access(contractPath, (err) => { if (err) { assert.fail(contractPath + ' was not downloaded'); @@ -15,7 +15,7 @@ describe('http contracts', () => { }); it('should have downloaded the file import file too', (done) => { - const contractImportPath = '.embark/contracts/status-im/contracts/master/contracts/identity/ERC725.sol'; + const contractImportPath = '.embark/contracts/status-im/contracts/151-embark31/contracts/token/ERC20Token.sol'; fs.access(contractImportPath, (err) => { if (err) { assert.fail(contractImportPath + ' was not downloaded'); diff --git a/test_apps/test_app/test/simple_storage_spec.js b/test_apps/test_app/test/simple_storage_spec.js index eb5c4662..3ee31b10 100644 --- a/test_apps/test_app/test/simple_storage_spec.js +++ b/test_apps/test_app/test/simple_storage_spec.js @@ -51,7 +51,7 @@ contract("SimpleStorage", function () { done(error); }); - SimpleStorage.methods.set2(150, 100).send(); + SimpleStorage.methods.set2(150).send(); }); });