mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 12:06:40 +00:00
_currentAbi object
This commit is contained in:
parent
380c1522ac
commit
848c54dc47
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ var contract = function (address, desc) {
|
||||||
extra.to = address;
|
extra.to = address;
|
||||||
return abi.methodSignature(desc, method.name).then(function (signature) {
|
return abi.methodSignature(desc, method.name).then(function (signature) {
|
||||||
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
|
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
|
||||||
|
web3._currentAbi = desc;
|
||||||
return web3.eth.transact(extra).then(onSuccess);
|
return web3.eth.transact(extra).then(onSuccess);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue