Skip to content

Commit

Permalink
remove unnecessary nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis19 committed Jan 16, 2025
1 parent a7b614f commit b7b50cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/jsonrpc/eth_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (api *APIImpl) getProof(ctx context.Context, address libcommon.Address, sto

// 0x80 represents RLP encoding of an empty proof slice
proof.StorageProof[i].Proof = []hexutility.Bytes{[]byte{0x80}}
if storageProof != nil && len(storageProof) != 0 {
if len(storageProof) != 0 {
proof.StorageProof[i].Proof = *(*[]hexutility.Bytes)(unsafe.Pointer(&storageProof))
}
}
Expand Down

0 comments on commit b7b50cf

Please sign in to comment.