I've been working with ens via
ensutils.js but I'm stuck at
If I try :
var sbid = ethRegistrar.shaBid(web3.sha3('name'), eth.accounts, web3.toWei(0.01, 'ether'), web3.sha3('my secret phrase')) ethRegistrar.startAuctionsAndBid(0x12345670159e0506114fee112628a969f587bf4b7bf4a728661705c08fa9ce82, sbid);
TypeError: 'forEach' is not a function at web3.js:1553:13 at web3.js:694:16 at map (<native code>) at web3.js:693:20 at web3.js:4059:46 at web3.js:4130:19 at apply (<native code>) at web3.js:4223:16 at <anonymous>:1:1
Other functions, like
unsealBid work as expected, only
startAuctionsAndBid gives me an error.
Any idea why?
forEach error was fixed by providing an
array as first argument.
The function is now executed but it fails on contract execution
startAuctionsAndBid expects 2 arguments:
hashes bytes32 sealedBid bytes32
How can I construct the elements of the
hashes = [web3.sha3('name')], but no luck.