Consensys / eth-lightwallet

Lightweight JS Wallet for Node and the browser
MIT License
1.46k stars 501 forks source link

Set the values in contract function after contract creation #148

Open Pris17 opened 7 years ago

Pris17 commented 7 years ago

I am using eth-lightwallet to generate accounts and then sign and create contract. I am able to create a contract and send raw transaction to blockchain node. Now i want to call one of the contract function which accepts 4-5 arguements and sets those arguements in variables. But I am not able to do this. Getting error as "Cannot read property 'inputs' of undefined".. Any help appreciated

Priya-Nets commented 7 years ago

@christianlundkvist Please provide a solution for this.

sc0Vu commented 7 years ago

Hi @Pris17

Did you mean this?

 var contract = web3.eth.contract(abi).at(.contractAddress);
 var data = contract.yourFunctionName([args]);
Pris17 commented 7 years ago

@sc0vu No. Not this way. I have use lightwallet methods to set the values in contract which doesn't seems to work.