I am quite new to this. Please help me out. I am trying to build a dapp using meteor. I am having a little trouble with calling a function of the contract using web3. Here's the code snippet that's trying to call the function of the contract:
myContract.startAFunc.sendTransaction(
"Name",{from: fromaddress, value: 500000000000000000},
function(err,address) {
if(!err)
console.log(address);});
//myContract is the ABI array at the contract address, startAFunc is the function name
The function prototype is as follows:
function startABet(string _Input} payable
I am getting this error:
Uncaught Error: new BigNumber() not a number: [object Object]
The code was working a while ago. I wanted to make a little modification by sending a variable instead of a hard coded value, but was not able to do so. Later I tried to revert back, now this is not working either. Can anyone please tell me what is the wrong that I am doing here. I have spent days on this, but haven't been able to figure it out. I am running it on chrome browser with metamask extension on a ubuntu machine.
fromaddress
is something wierd that web3 doesn't know how to handle. The error is somewhere in your javascript, not your solidity. Try logging out some more variables. – Aakil Fernandes Mar 7 '17 at 21:00