mirror of https://github.com/status-im/web3.js.git
Various fixes to ethereum.js and client web API stuff.
This commit is contained in:
parent
ded221fba2
commit
5582901ca5
|
@ -453,8 +453,10 @@ var contract = function (address, desc) {
|
||||||
transact: function (extra) {
|
transact: function (extra) {
|
||||||
extra = extra || {};
|
extra = extra || {};
|
||||||
extra.to = address;
|
extra.to = address;
|
||||||
extra.data = parsed;
|
return abi.methodSignature(desc, method.name).then(function (signature) {
|
||||||
return web3.eth.transact(extra).then(onSuccess);
|
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
|
||||||
|
return web3.eth.transact(extra).then(onSuccess);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -57,8 +57,10 @@ var contract = function (address, desc) {
|
||||||
transact: function (extra) {
|
transact: function (extra) {
|
||||||
extra = extra || {};
|
extra = extra || {};
|
||||||
extra.to = address;
|
extra.to = address;
|
||||||
extra.data = parsed;
|
return abi.methodSignature(desc, method.name).then(function (signature) {
|
||||||
return web3.eth.transact(extra).then(onSuccess);
|
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
|
||||||
|
return web3.eth.transact(extra).then(onSuccess);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue