changes to for natspec

This commit is contained in:
Marek Kotewicz 2015-01-21 18:56:30 +01:00
parent 848c54dc47
commit f3e78e50ff
2 changed files with 3 additions and 1 deletions

View File

@ -7,5 +7,6 @@ web3.providers.HttpRpcProvider = require('./lib/httprpc');
web3.providers.QtProvider = require('./lib/qt');
web3.providers.AutoProvider = require('./lib/autoprovider');
web3.eth.contract = require('./lib/contract');
web3.abi = require('./lib/abi');
module.exports = web3;

View File

@ -79,7 +79,8 @@ var contract = function (address, desc) {
extra.to = address;
return abi.methodSignature(desc, method.name).then(function (signature) {
extra.data = signature.slice(0, 2 + ETH_METHOD_SIGNATURE_LENGTH * 2) + parsed;
web3._currentAbi = desc;
web3._currentContractAbi = desc;
web3._currentContractAddress = address;
return web3.eth.transact(extra).then(onSuccess);
});
}