sha3 method signature
This commit is contained in:
@ -46,8 +46,10 @@ var contract = function (address, desc) {
|
||||
call: function (extra) {
|
||||
extra = extra || {};
|
||||
extra.to = address;
|
||||
extra.data = parsed;
|
||||
return web3.eth.call(extra).then(onSuccess);
|
||||
return abi.methodSignature(desc, method.name).then(function (signature) {
|
||||
extra.data = signature.slice(0, 10) + parsed;
|
||||
return web3.eth.call(extra).then(onSuccess);
|
||||
});
|
||||
},
|
||||
transact: function (extra) {
|
||||
extra = extra || {};
|
||||
|
Reference in New Issue
Block a user