From 16bf471151a2e3c65499e0e9ae913e31d634826e Mon Sep 17 00:00:00 2001 From: Karol Chojnowski Date: Thu, 10 Oct 2024 13:03:03 +0200 Subject: [PATCH] core/tracing: add GetTransientState method to StateDB interface (#30531) Allows live custom tracers to access contract transient storage through the StateDB interface. --- core/tracing/hooks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tracing/hooks.go b/core/tracing/hooks.go index 882eb52837..f0baf667cb 100644 --- a/core/tracing/hooks.go +++ b/core/tracing/hooks.go @@ -43,6 +43,7 @@ type StateDB interface { GetNonce(common.Address) uint64 GetCode(common.Address) []byte GetState(common.Address, common.Hash) common.Hash + GetTransientState(common.Address, common.Hash) common.Hash Exist(common.Address) bool GetRefund() uint64 }