Skip to content

Commit d7e7b54

Browse files
authored
core/tracing: add GetCodeHash to StateDB (#30784)
This PR extends the tracing.StateDB interface by adding a GetCodeHash function.
1 parent b4d99e3 commit d7e7b54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/tracing/hooks.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type StateDB interface {
4242
GetBalance(common.Address) *uint256.Int
4343
GetNonce(common.Address) uint64
4444
GetCode(common.Address) []byte
45+
GetCodeHash(common.Address) common.Hash
4546
GetState(common.Address, common.Hash) common.Hash
4647
GetTransientState(common.Address, common.Hash) common.Hash
4748
Exist(common.Address) bool

0 commit comments

Comments
 (0)