aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ethereum.js
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-12 01:15:35 +0800
committerGav Wood <i@gavwood.com>2015-01-12 01:15:35 +0800
commit5582901ca5835a32f907a12ded2a4e3492f8b4e3 (patch)
treefd99c182a5c271b7c3c120afde4ddfd439d2dd51 /dist/ethereum.js
parentded221fba2cc21e1037a1130d9d142e657a52e89 (diff)
downloadgo-tangerine-5582901ca5835a32f907a12ded2a4e3492f8b4e3.tar.gz
go-tangerine-5582901ca5835a32f907a12ded2a4e3492f8b4e3.tar.zst
go-tangerine-5582901ca5835a32f907a12ded2a4e3492f8b4e3.zip
Various fixes to ethereum.js and client web API stuff.
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r--dist/ethereum.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js
index c1883d156..a7c6c8624 100644
--- a/dist/ethereum.js
+++ b/dist/ethereum.js
@@ -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);
+ });
}
};
};