Skip to content

Commit

Permalink
fix(tracing): fix getTxResult returned error format (#561)
Browse files Browse the repository at this point in the history
* fix(tracing): fix `getTxResult` returned error format

* Update version.go
  • Loading branch information
0xmountaintop authored Nov 30, 2023
1 parent 9f143b4 commit 38a3a9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 38a3a9c

Please sign in to comment.