Commit 5f203dee authored by Michael de Hoog's avatar Michael de Hoog

Switch to ToInt

parent 2549bb4d
...@@ -359,8 +359,8 @@ func (s *EthClient) ReadStorageAt(ctx context.Context, address common.Address, s ...@@ -359,8 +359,8 @@ func (s *EthClient) ReadStorageAt(ctx context.Context, address common.Address, s
if err := result.Verify(block.Root()); err != nil { if err := result.Verify(block.Root()); err != nil {
return common.Hash{}, fmt.Errorf("failed to verify retrieved proof against state root: %w", err) return common.Hash{}, fmt.Errorf("failed to verify retrieved proof against state root: %w", err)
} }
value := big.Int(result.StorageProof[0].Value) value := result.StorageProof[0].Value.ToInt()
return common.BytesToHash((&value).Bytes()), nil return common.BytesToHash(value.Bytes()), nil
} }
func (s *EthClient) Close() { func (s *EthClient) Close() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment