Skip to content

Commit

Permalink
Merge branch 'dev' into sunstrider/fix-erc20-cw20
Browse files Browse the repository at this point in the history
  • Loading branch information
BananaLF authored Jul 10, 2023
2 parents fba66e2 + ec7f814 commit b087bbe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions x/evm/types/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import (
"math/big"
"strings"

"github.com/okex/exchain/libs/system/trace"
"github.com/okex/exchain/libs/tendermint/types"

"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
Expand All @@ -21,6 +18,8 @@ import (
sdk "github.com/okex/exchain/libs/cosmos-sdk/types"
sdkerrors "github.com/okex/exchain/libs/cosmos-sdk/types/errors"
"github.com/okex/exchain/libs/cosmos-sdk/types/innertx"
"github.com/okex/exchain/libs/system/trace"
"github.com/okex/exchain/libs/tendermint/types"
)

// StateTransition defines data to transitionDB in evm
Expand Down Expand Up @@ -328,19 +327,20 @@ func (st StateTransition) TransitionDb(ctx sdk.Context, config ChainConfig) (exe
// return trace log if tracetxlog no matter err = nil or not nil
defer func() {
var traceLogs []byte
var traceErr error
if st.TraceTxLog {
result := &core.ExecutionResult{
UsedGas: gasConsumed,
Err: err,
ReturnData: ret,
}
traceLogs, err = GetTracerResult(tracer, result)
if err != nil {
traceLogs = []byte(err.Error())
traceLogs, traceErr = GetTracerResult(tracer, result)
if traceErr != nil {
traceLogs = []byte(traceErr.Error())
} else {
traceLogs, err = integratePreimage(csdb, traceLogs)
if err != nil {
traceLogs = []byte(err.Error())
traceLogs, traceErr = integratePreimage(csdb, traceLogs)
if traceErr != nil {
traceLogs = []byte(traceErr.Error())
}
}
if exeRes == nil {
Expand Down

0 comments on commit b087bbe

Please sign in to comment.