From 5582901ca5835a32f907a12ded2a4e3492f8b4e3 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 11 Jan 2015 18:15:35 +0100 Subject: Various fixes to ethereum.js and client web API stuff. --- dist/ethereum.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dist/ethereum.js') 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); + }); } }; }; -- cgit v1.2.3