iurimatias / EtherSim

EtherSim is an Ethereum RPC simulator for testing and development purposes
MIT License
59 stars 21 forks source link

Cannot use 'call'-function offChain #10

Closed pubkey closed 7 years ago

pubkey commented 8 years ago

When is run a call-function to get some data from the blockchain without making a transaction, is says

Error: sender doesn't have enough funds to send tx. The upfront cost is: 3141592 and the senders account only has: 0

state.contractInstance['foobar'].call(function(err, res){
   err && console.dir(err);
   console.dir(res);
});

EDIT: The call works of course, if I give enough eth to the coinbase. But shouldn't be the call-function completely offchain?