Skip to content

Instantly share code, notes, and snippets.

@quantumproducer
Last active January 11, 2018 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantumproducer/b1cfdbbb8b04c24e834543518c59a0bb to your computer and use it in GitHub Desktop.
Save quantumproducer/b1cfdbbb8b04c24e834543518c59a0bb to your computer and use it in GitHub Desktop.
contract Keystore {
address[] public owners;
function buyKey() payable {
require(msg.value >= 1000000000000000);
owners.push(msg.sender);
}
}
truffle(development)> ks.buyKey
{ [Function]
call: [Function],
sendTransaction: [Function],
request: [Function: bound ],
estimateGas: [Function] }
truffle(development)> ks.buyKey.call("0x03A5C646f456bfB8521F899dA4789dFFC52a830E")
truffle(development)> ks.buyKey.call("0x03A5C646f456bfB8521F899dA4789dFFC52a830E")
Error: Invalid number of arguments to Solidity function
at Object.InvalidNumberOfSolidityArgs (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:41471:16)
at SolidityFunction.validateArgs (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:327892:22)
at SolidityFunction.toPayload (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:327908:10)
at SolidityFunction.call (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:327949:24)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:316821:16
at new Promise (<anonymous>)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:316812:18
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
truffle(development)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment