Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 1 addition & 5 deletions evmrpc/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1040,11 +1040,7 @@ func (f *LogFetcher) processBatch(ctx context.Context, start, end int64, crit fi
if len(crit.Addresses) != 0 || len(crit.Topics) != 0 {
// Bloom cache miss - read from database
providerCtx := f.ctxProvider(height)
if f.includeSyntheticReceipts {
blockBloom = f.k.GetBlockBloom(providerCtx)
} else {
blockBloom = f.k.GetEvmOnlyBlockBloom(providerCtx)
}
blockBloom = f.k.GetBlockBloom(providerCtx)

// When we cannot retrieve a bloom for the EVM-only view (all zeroes),
// skip the bloom pre-filter instead of short-circuiting the block.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ require (
)

replace (
github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.3.10
github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.3.11
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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2007,8 +2007,8 @@ github.com/sei-protocol/sei-tendermint v0.6.7 h1:76ElMtSi08p7oUbMBCFvd9qwXABwI+H
github.com/sei-protocol/sei-tendermint v0.6.7/go.mod h1:SSZv0P1NBP/4uB3gZr5XJIan3ks3Ui8FJJzIap4r6uc=
github.com/sei-protocol/sei-tm-db v0.0.5 h1:3WONKdSXEqdZZeLuWYfK5hP37TJpfaUa13vAyAlvaQY=
github.com/sei-protocol/sei-tm-db v0.0.5/go.mod h1:Cpa6rGyczgthq7/0pI31jys2Fw0Nfrc+/jKdP1prVqY=
github.com/sei-protocol/sei-wasmd v0.3.10 h1:3sa8zEtUrpOwusIaojl8Jv4+OCFzcU1JZYhQx27ij/o=
github.com/sei-protocol/sei-wasmd v0.3.10/go.mod h1:C5TM6FIG7Nao2t1v5cdJYZEVXrRUswRNPdJ5XjCsCFk=
github.com/sei-protocol/sei-wasmd v0.3.11 h1:Ldmge+XVm/8pxdNJhOjLNjZeT2oFiH5LEylwttKmmtc=
github.com/sei-protocol/sei-wasmd v0.3.11/go.mod h1:C5TM6FIG7Nao2t1v5cdJYZEVXrRUswRNPdJ5XjCsCFk=
github.com/sei-protocol/sei-wasmvm v1.5.4-sei.0.0.3 h1:hhZdZLR8g+6bxWBZiMflSnIuHgLcK/QEpzyjx0/yXYU=
github.com/sei-protocol/sei-wasmvm v1.5.4-sei.0.0.3/go.mod h1:Q0bSEtlktzh7W2hhEaifrFp1Erx11ckQZmjq8FLCyys=
github.com/sei-protocol/tm-db v0.0.4 h1:7Y4EU62Xzzg6wKAHEotm7SXQR0aPLcGhKHkh3qd0tnk=
Expand Down
9 changes: 7 additions & 2 deletions precompiles/common/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ 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 @@ -66,7 +67,7 @@ func (p Precompile) Run(evm *vm.EVM, caller common.Address, callingContract comm
defer func() {
HandlePrecompileError(err, evm, operation)
if err != nil {
bz = []byte(err.Error())
bz = []byte(replaceWasmdVersionStr(err.Error()))
err = vm.ErrExecutionReverted
}
}()
Expand Down Expand Up @@ -159,7 +160,7 @@ func (d DynamicGasPrecompile) RunAndCalculateGas(evm *vm.EVM, caller common.Addr
defer func() {
HandlePrecompileError(err, evm, operation)
if err != nil {
ret = []byte(err.Error())
ret = []byte(replaceWasmdVersionStr(err.Error()))
err = vm.ErrExecutionReverted
}
}()
Expand Down Expand Up @@ -299,3 +300,7 @@ 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