Skip to content

Commit

Permalink
core/tracing: add GetCodeHash to StateDB (ethereum#30784)
Browse files Browse the repository at this point in the history
This PR extends the tracing.StateDB interface by adding a GetCodeHash function.
  • Loading branch information
nebojsa94 authored Nov 26, 2024
1 parent b4d99e3 commit d7e7b54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tracing/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type StateDB interface {
GetBalance(common.Address) *uint256.Int
GetNonce(common.Address) uint64
GetCode(common.Address) []byte
GetCodeHash(common.Address) common.Hash
GetState(common.Address, common.Hash) common.Hash
GetTransientState(common.Address, common.Hash) common.Hash
Exist(common.Address) bool
Expand Down

0 comments on commit d7e7b54

Please sign in to comment.