Skip to main content

Hi i deployed a token contract in ethereum and managed to interact with it,. solidity code :


contract Token {
  mapping (address => uint) public balances;
  event TokenSent(address sender, address receiver, uint amount);
  function Token(uint supply) {
    if (supply == 0) supply = 10000;
    balances[msg.sender] = supply;
  }
  function send(address receiver, uint amount) returns (bool ok) {
    if (balances[msg.sender] < amount) return false;
    balances[msg.sender] -= amount;
    balances[receiver] += amount;
    TokenSent(msg.sender, receiver, amount);
    return true;
  }
}

now im trying to send tokens to an account and i keep getting the following error: solidity code :

contract Token { mapping (address => uint) public balances; event TokenSent(address sender, address receiver, uint amount); function Token(uint supply) { if (supply == 0) supply = 10000; balances[msg.sender] = supply; } function send(address receiver, uint amount) returns (bool ok) { if (balances[msg.sender] < amount) return false; balances[msg.sender] -= amount; balances[receiver] += amount; TokenSent(msg.sender, receiver, amount); return true; } }

new BigNumber() not a number: [object Object]10[object Object] at raise (web3.js:14426:29) at web3.js:14414:33 at BigNumber (web3.js:13442:67) at BigNumber (web3.js:13452:29) at web3.js:2241:16 at web3.js:2252:21 at web3.js:950:32 at web3.js:1598:12 at web3.js:707:16 at web3.js:706:20 at web3.js:3991:46


new BigNumber() not a number: [object Object]10[object Object]
    at raise (web3.js:14426:29)
    at web3.js:14414:33
    at BigNumber (web3.js:13442:67)
    at BigNumber (web3.js:13452:29)
    at web3.js:2241:16
    at web3.js:2252:21
    at web3.js:950:32
    at web3.js:1598:12
    at web3.js:707:16
    at web3.js:706:20
    at web3.js:3991:46

imI'm sending the following: myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),


myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),

if anyone could point me in the right direction that would be awesome!

Hi i deployed a token contract in ethereum and managed to interact with it, now im trying to send tokens to an account and i keep getting the following error: solidity code :

contract Token { mapping (address => uint) public balances; event TokenSent(address sender, address receiver, uint amount); function Token(uint supply) { if (supply == 0) supply = 10000; balances[msg.sender] = supply; } function send(address receiver, uint amount) returns (bool ok) { if (balances[msg.sender] < amount) return false; balances[msg.sender] -= amount; balances[receiver] += amount; TokenSent(msg.sender, receiver, amount); return true; } }

new BigNumber() not a number: [object Object]10[object Object] at raise (web3.js:14426:29) at web3.js:14414:33 at BigNumber (web3.js:13442:67) at BigNumber (web3.js:13452:29) at web3.js:2241:16 at web3.js:2252:21 at web3.js:950:32 at web3.js:1598:12 at web3.js:707:16 at web3.js:706:20 at web3.js:3991:46

im sending the following: myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),

if anyone could point me in the right direction that would be awesome!

Hi i deployed a token contract in ethereum and managed to interact with it. solidity code :


contract Token {
  mapping (address => uint) public balances;
  event TokenSent(address sender, address receiver, uint amount);
  function Token(uint supply) {
    if (supply == 0) supply = 10000;
    balances[msg.sender] = supply;
  }
  function send(address receiver, uint amount) returns (bool ok) {
    if (balances[msg.sender] < amount) return false;
    balances[msg.sender] -= amount;
    balances[receiver] += amount;
    TokenSent(msg.sender, receiver, amount);
    return true;
  }
}

now im trying to send tokens to an account and i keep getting the following error:


new BigNumber() not a number: [object Object]10[object Object]
    at raise (web3.js:14426:29)
    at web3.js:14414:33
    at BigNumber (web3.js:13442:67)
    at BigNumber (web3.js:13452:29)
    at web3.js:2241:16
    at web3.js:2252:21
    at web3.js:950:32
    at web3.js:1598:12
    at web3.js:707:16
    at web3.js:706:20
    at web3.js:3991:46

I'm sending the following:


myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),

if anyone could point me in the right direction that would be awesome!

added 535 characters in body
Source Link

Hi i deployed a token contract in ethereum and managed to interact with it, now im trying to send tokens to an account and i keep getting the following error: solidity code :

contract Token { mapping (address => uint) public balances; event TokenSent(address sender, address receiver, uint amount); function Token(uint supply) { if (supply == 0) supply = 10000; balances[msg.sender] = supply; } function send(address receiver, uint amount) returns (bool ok) { if (balances[msg.sender] < amount) return false; balances[msg.sender] -= amount; balances[receiver] += amount; TokenSent(msg.sender, receiver, amount); return true; } }

new BigNumber() not a number: [object Object]10[object Object] at raise (web3.js:14426:29) at web3.js:14414:33 at BigNumber (web3.js:13442:67) at BigNumber (web3.js:13452:29) at web3.js:2241:16 at web3.js:2252:21 at web3.js:950:32 at web3.js:1598:12 at web3.js:707:16 at web3.js:706:20 at web3.js:3991:46

im sending the following: myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),

if anyone could point me in the right direction that would be awesome!

Hi i deployed a token contract in ethereum and managed to interact with it, now im trying to send tokens to an account and i keep getting the following error:

new BigNumber() not a number: [object Object]10[object Object] at raise (web3.js:14426:29) at web3.js:14414:33 at BigNumber (web3.js:13442:67) at BigNumber (web3.js:13452:29) at web3.js:2241:16 at web3.js:2252:21 at web3.js:950:32 at web3.js:1598:12 at web3.js:707:16 at web3.js:706:20 at web3.js:3991:46

im sending the following: myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),

if anyone could point me in the right direction that would be awesome!

Hi i deployed a token contract in ethereum and managed to interact with it, now im trying to send tokens to an account and i keep getting the following error: solidity code :

contract Token { mapping (address => uint) public balances; event TokenSent(address sender, address receiver, uint amount); function Token(uint supply) { if (supply == 0) supply = 10000; balances[msg.sender] = supply; } function send(address receiver, uint amount) returns (bool ok) { if (balances[msg.sender] < amount) return false; balances[msg.sender] -= amount; balances[receiver] += amount; TokenSent(msg.sender, receiver, amount); return true; } }

new BigNumber() not a number: [object Object]10[object Object] at raise (web3.js:14426:29) at web3.js:14414:33 at BigNumber (web3.js:13442:67) at BigNumber (web3.js:13452:29) at web3.js:2241:16 at web3.js:2252:21 at web3.js:950:32 at web3.js:1598:12 at web3.js:707:16 at web3.js:706:20 at web3.js:3991:46

im sending the following: myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),

if anyone could point me in the right direction that would be awesome!

Source Link

Sending tokens getting error

Hi i deployed a token contract in ethereum and managed to interact with it, now im trying to send tokens to an account and i keep getting the following error:

new BigNumber() not a number: [object Object]10[object Object] at raise (web3.js:14426:29) at web3.js:14414:33 at BigNumber (web3.js:13442:67) at BigNumber (web3.js:13452:29) at web3.js:2241:16 at web3.js:2252:21 at web3.js:950:32 at web3.js:1598:12 at web3.js:707:16 at web3.js:706:20 at web3.js:3991:46

im sending the following: myContractInstance.send([{"receiver": "ed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d"},{"amount": "100"}]),

if anyone could point me in the right direction that would be awesome!