Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ replace (
github.com/CosmWasm/wasmvm => github.com/sei-protocol/sei-wasmvm v1.5.4-sei.0.0.3
github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.23.2
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.66
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.67
github.com/cosmos/iavl => github.com/sei-protocol/sei-iavl v0.2.0
github.com/cosmos/ibc-go/v3 => github.com/sei-protocol/sei-ibc-go/v3 v3.3.6
github.com/ethereum/go-ethereum => github.com/sei-protocol/go-ethereum v1.15.7-sei-7
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1995,8 +1995,8 @@ github.com/sei-protocol/go-ethereum v1.15.7-sei-7 h1:5Um1DHbcv9Nn0ksDHaaj49Ub/Nl
github.com/sei-protocol/go-ethereum v1.15.7-sei-7/go.mod h1:+S9k+jFzlyVTNcYGvqFhzN/SFhI6vA+aOY4T5tLSPL0=
github.com/sei-protocol/goutils v0.0.2 h1:Bfa7Sv+4CVLNM20QcpvGb81B8C5HkQC/kW1CQpIbXDA=
github.com/sei-protocol/goutils v0.0.2/go.mod h1:iYE2DuJfEnM+APPehr2gOUXfuLuPsVxorcDO+Tzq9q8=
github.com/sei-protocol/sei-cosmos v0.3.66 h1:DZL0OWpv+3/tleudTXUeMJtjb2C92O9PiNJBQoYDhBE=
github.com/sei-protocol/sei-cosmos v0.3.66/go.mod h1:xckXRG0A8Fxr69YNYTE8/aqSprVui3Byt5iJEiSrEQ4=
github.com/sei-protocol/sei-cosmos v0.3.67 h1:oxDjeEqiP6p/H2YDPGgEFcjlwRWrMED8jo+z37wIrnc=
github.com/sei-protocol/sei-cosmos v0.3.67/go.mod h1:xckXRG0A8Fxr69YNYTE8/aqSprVui3Byt5iJEiSrEQ4=
github.com/sei-protocol/sei-db v0.0.55 h1:1pR1mW4CQS959HhSapKnkFQXb7y7BehV4ZE0Paka+j8=
github.com/sei-protocol/sei-db v0.0.55/go.mod h1:pDrfm5aqVKD93HADrG5MLkReA4Vlz+2xaLi3T4mQqBc=
github.com/sei-protocol/sei-iavl v0.2.0 h1:OisPjXiDT+oe+aeckzDEFgkZCYuUjHgs/PP8DPicN+I=
Expand Down
9 changes: 2 additions & 7 deletions precompiles/common/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"math/big"
"strings"

storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -67,7 +66,7 @@ func (p Precompile) Run(evm *vm.EVM, caller common.Address, callingContract comm
defer func() {
HandlePrecompileError(err, evm, operation)
if err != nil {
bz = []byte(replaceWasmdVersionStr(err.Error()))
bz = []byte(err.Error())
err = vm.ErrExecutionReverted
}
}()
Expand Down Expand Up @@ -160,7 +159,7 @@ func (d DynamicGasPrecompile) RunAndCalculateGas(evm *vm.EVM, caller common.Addr
defer func() {
HandlePrecompileError(err, evm, operation)
if err != nil {
ret = []byte(replaceWasmdVersionStr(err.Error()))
ret = []byte(err.Error())
err = vm.ErrExecutionReverted
}
}()
Expand Down Expand Up @@ -300,7 +299,3 @@ func GetSeiAddressFromArg(ctx sdk.Context, arg interface{}, evmKeeper putils.EVM
}
return GetSeiAddressByEvmAddress(ctx, addr, evmKeeper)
}

func replaceWasmdVersionStr(err string) string {
return strings.Replace(err, "sei-wasmd@v0.3.11", "sei-wasmd@v0.3.10", 1)
}
Loading