Last active
January 11, 2018 20:41
-
-
Save quantumproducer/b1cfdbbb8b04c24e834543518c59a0bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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