Skip to content

Commit 1268de0

Browse files
kchojngballet
authored andcommitted
core/tracing: add GetTransientState method to StateDB interface (ethereum#30531)
Allows live custom tracers to access contract transient storage through the StateDB interface.
1 parent 69ce1e4 commit 1268de0

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
@@ -43,6 +43,7 @@ type StateDB interface {
4343
GetNonce(common.Address) uint64
4444
GetCode(common.Address) []byte
4545
GetState(common.Address, common.Hash) common.Hash
46+
GetTransientState(common.Address, common.Hash) common.Hash
4647
Exist(common.Address) bool
4748
GetRefund() uint64
4849
}

0 commit comments

Comments
 (0)