Closed schemar closed 5 years ago
Currently, you must pass in the block height as string. If you pass in a number, you get an error. The anchor method should automatically convert number to string and accept both.
Right now you have to do:
const anchor = new Anchor(shared.auxiliary.web3, shared.auxiliary.addresses.Anchor); const block = await shared.origin.web3.eth.getBlock('latest'); await anchor.anchorStateRoot( block.number.toString(), block.stateRoot, txOptions, );
wrong repo
Currently, you must pass in the block height as string. If you pass in a number, you get an error. The anchor method should automatically convert number to string and accept both.
Right now you have to do: