mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
Various fixes to ethereum.js and client web API stuff.
This commit is contained in:
parent
ded221fba2
commit
5582901ca5
4 changed files with 11 additions and 7 deletions
6
dist/ethereum.js
vendored
6
dist/ethereum.js
vendored
|
|
@ -453,8 +453,10 @@ var contract = function (address, desc) {
|
|||
transact: function (extra) {
|
||||
extra = extra || {};
|
||||
extra.to = address;
|
||||
extra.data = parsed;
|
||||
return web3.eth.transact(extra).then(onSuccess);
|
||||
return abi.methodSignature(desc, method.name).then(function (signature) {
|
||||
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
|
||||
return web3.eth.transact(extra).then(onSuccess);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
4
dist/ethereum.js.map
vendored
4
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -57,8 +57,10 @@ var contract = function (address, desc) {
|
|||
transact: function (extra) {
|
||||
extra = extra || {};
|
||||
extra.to = address;
|
||||
extra.data = parsed;
|
||||
return web3.eth.transact(extra).then(onSuccess);
|
||||
return abi.methodSignature(desc, method.name).then(function (signature) {
|
||||
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
|
||||
return web3.eth.transact(extra).then(onSuccess);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue