From 34c6b7431574c23f2fa9649c25499938882a836b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 12 Jan 2018 18:08:44 -0500 Subject: [PATCH] update tests --- test_app/test/simple_storage_spec.js | 2 +- test_app/test/token_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_app/test/simple_storage_spec.js b/test_app/test/simple_storage_spec.js index 619342f7..3c123c0c 100644 --- a/test_app/test/simple_storage_spec.js +++ b/test_app/test/simple_storage_spec.js @@ -32,7 +32,7 @@ contract("SimpleStorage", function() { }); it("set storage value", function(done) { - SimpleStorage.methods.set(150).send({from: web3.eth.defaultAccount}).then(function() { + SimpleStorage.methods.set(150).send().then(function() { SimpleStorage.methods.get().call().then(function(result) { assert.equal(result, 150); done(); diff --git a/test_app/test/token_spec.js b/test_app/test/token_spec.js index 841ad440..4f5c6417 100644 --- a/test_app/test/token_spec.js +++ b/test_app/test/token_spec.js @@ -26,7 +26,7 @@ describe("Token", function() { }, "Test": { onDeploy: [ - "Test.methods.changeAddress('$MyToken').send({from: web3.eth.defaultAccount})" + "Test.methods.changeAddress('$MyToken').send()" ] } };