diff --git a/core/trace.go b/core/trace.go index 9f6bdc899a..2201bfab9d 100644 --- a/core/trace.go +++ b/core/trace.go @@ -502,14 +502,14 @@ func (env *TraceEnv) fillBlockTrace(block *types.Block) (*types.BlockTrace, erro for i, tx := range block.Transactions() { evmTrace := env.ExecutionResults[i] - // probably a Contract Call - if len(tx.Data()) != 0 && tx.To() != nil { + // Contract is created. + if tx.To() == nil { + evmTrace.ByteCode = hexutil.Encode(tx.Data()) + } else { // contract call be included at this case, specially fallback call's data is empty. evmTrace.ByteCode = hexutil.Encode(statedb.GetCode(*tx.To())) // Get tx.to address's code hash. codeHash := statedb.GetPoseidonCodeHash(*tx.To()) evmTrace.PoseidonCodeHash = &codeHash - } else if tx.To() == nil { // Contract is created. - evmTrace.ByteCode = hexutil.Encode(tx.Data()) } } diff --git a/params/version.go b/params/version.go index 046f866245..7344ed9814 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 4 // Major version component of the current release VersionMinor = 3 // Minor version component of the current release - VersionPatch = 34 // Patch version component of the current release + VersionPatch = 35 // Patch version component of the current release VersionMeta = "sepolia" // Version metadata to append to the version string )