aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-22 01:56:30 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-22 01:56:30 +0800
commitf3e78e50ff5c02b9b365de0571f1782b205cb319 (patch)
tree3b0cd980c3b78f25d5266e70d7d668f2b64ae160 /lib
parent848c54dc4713d5c29993f1c41d16cd334e18081d (diff)
downloadgo-tangerine-f3e78e50ff5c02b9b365de0571f1782b205cb319.tar
go-tangerine-f3e78e50ff5c02b9b365de0571f1782b205cb319.tar.gz
go-tangerine-f3e78e50ff5c02b9b365de0571f1782b205cb319.tar.bz2
go-tangerine-f3e78e50ff5c02b9b365de0571f1782b205cb319.tar.lz
go-tangerine-f3e78e50ff5c02b9b365de0571f1782b205cb319.tar.xz
go-tangerine-f3e78e50ff5c02b9b365de0571f1782b205cb319.tar.zst
go-tangerine-f3e78e50ff5c02b9b365de0571f1782b205cb319.zip
changes to for natspec
Diffstat (limited to 'lib')
-rw-r--r--lib/contract.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/contract.js b/lib/contract.js
index 67fb407ad..abd8e5bdf 100644
--- a/lib/contract.js
+++ b/lib/contract.js
@@ -79,7 +79,8 @@ var contract = function (address, desc) {
extra.to = address;
return abi.methodSignature(desc, method.name).then(function (signature) {
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
- web3._currentAbi = desc;
+ web3._currentContractAbi = desc;
+ web3._currentContractAddress = address;
return web3.eth.transact(extra).then(onSuccess);
});
}