diff --git a/core/types/rlp_payload.libevm.go b/core/types/rlp_payload.libevm.go index ff3530d1692..b2478b9e36f 100644 --- a/core/types/rlp_payload.libevm.go +++ b/core/types/rlp_payload.libevm.go @@ -20,6 +20,7 @@ import ( "fmt" "io" + "github.com/ava-labs/libevm/common" "github.com/ava-labs/libevm/libevm/pseudo" "github.com/ava-labs/libevm/libevm/register" "github.com/ava-labs/libevm/libevm/testonly" @@ -365,3 +366,8 @@ func (e *StateAccountExtra) Format(s fmt.State, verb rune) { } _, _ = s.Write([]byte(out)) } + +// RLPHash returns the hash of the RLP encoding of `x`. +func RLPHash(x any) common.Hash { + return rlpHash(x) +}