diff --git a/lib/contract.js b/lib/contract.js index efee00cd1..65115a211 100644 --- a/lib/contract.js +++ b/lib/contract.js @@ -110,6 +110,7 @@ var contract = function (address, desc) { // TODO: figure out better way to solve this web3._currentContractAbi = desc; web3._currentContractAddress = address; + web3._currentContractMethodName = method.name; // transactions do not have any output, cause we do not know, when they will be processed web3.eth.transact(options);