I'm trying to register a name for a coin... following this tutorial:
http://ethereum.gitbooks.io/frontier-guide/content/contract_namereg.html and specifically: 5.13.2 Registrars
When I run:
registrar.reserve.sendTransaction(tokenName, {from: eth.accounts[0]});
I'm getting:
> registrar.reserve.sendTransaction(tokenName, {from: eth.accounts[0]});
Invalid address
at InvalidResponse (:-60926:-71)
at send (:-124886:-71)
at sendTransaction (:-113803:-71)
at sendTransaction (:-92131:-71)
at :1:1
What am I doing wrong here?
Comments
https://forum.ethereum.org/discussion/3279/bytes32-in-functions-not-working-properly-but-in-use-in-contracts
In short, change your line to add a gas amount:
registrar.reserve.sendTransaction(tokenName, {from: eth.accounts[0], gas: 2000000});
registrar.reserve.sendTransaction(tokenName, {from: eth.accounts[0]});
I using the testrpc. Gas may not be so important. Hope help anyone else.