Skip to content

Commit

Permalink
update getblockbynumber to use same type casting as headerbynumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilan Gitter authored and jgiles committed Oct 18, 2018
1 parent 2e8ecf3 commit de06789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (b *SimulatedBackend) BlockByNumber(ctx context.Context, number *big.Int) (
if number == nil {
return b.blockchain.CurrentBlock(), nil
}
block := b.blockchain.GetBlockByNumber(number.Uint64())
block := b.blockchain.GetBlockByNumber(uint64(number.Int64()))
if block == nil {
return nil, errBlockDoesNotExist
}
Expand Down

0 comments on commit de06789

Please sign in to comment.