mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
fix(tracing): fix getTxResult returned error format (#561)
* fix(tracing): fix `getTxResult` returned error format * Update version.go
This commit is contained in:
parent
9f143b47b2
commit
38a3a9c919
2 changed files with 3 additions and 3 deletions
|
|
@ -280,11 +280,11 @@ func (env *TraceEnv) getTxResult(state *state.StateDB, index int, block *types.B
|
|||
// Computes the new state by applying the given message.
|
||||
l1DataFee, err := fees.CalculateL1DataFee(tx, state)
|
||||
if err != nil {
|
||||
return fmt.Errorf("tracing failed: %w", err)
|
||||
return err
|
||||
}
|
||||
result, err := ApplyMessage(vmenv, msg, new(GasPool).AddGas(msg.Gas()), l1DataFee)
|
||||
if err != nil {
|
||||
return fmt.Errorf("tracing failed: %w", err)
|
||||
return err
|
||||
}
|
||||
// If the result contains a revert reason, return it.
|
||||
returnVal := result.Return()
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import (
|
|||
const (
|
||||
VersionMajor = 5 // Major version component of the current release
|
||||
VersionMinor = 1 // Minor version component of the current release
|
||||
VersionPatch = 5 // Patch version component of the current release
|
||||
VersionPatch = 6 // Patch version component of the current release
|
||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue