Skip to content

Commit 1d69401

Browse files
authored
Bump Sei Cosmos (#1722)
1 parent a0e7266 commit 1d69401

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ require (
346346
replace (
347347
github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.1.5
348348
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
349-
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.16
349+
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.18
350350
github.com/cosmos/iavl => github.com/sei-protocol/sei-iavl v0.1.9
351351
github.com/cosmos/ibc-go/v3 => github.com/sei-protocol/sei-ibc-go/v3 v3.3.1
352352
github.com/ethereum/go-ethereum => github.com/sei-protocol/go-ethereum v1.13.5-sei-21

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1347,8 +1347,8 @@ github.com/sei-protocol/go-ethereum v1.13.5-sei-21 h1:uzBquo71kOMs2bZjmYsiDQb7t5
13471347
github.com/sei-protocol/go-ethereum v1.13.5-sei-21/go.mod h1:kcRZmuzRn1lVejiFNTz4l4W7imnpq1bDAnuKS/RyhbQ=
13481348
github.com/sei-protocol/goutils v0.0.2 h1:Bfa7Sv+4CVLNM20QcpvGb81B8C5HkQC/kW1CQpIbXDA=
13491349
github.com/sei-protocol/goutils v0.0.2/go.mod h1:iYE2DuJfEnM+APPehr2gOUXfuLuPsVxorcDO+Tzq9q8=
1350-
github.com/sei-protocol/sei-cosmos v0.3.16 h1:NVTpiSVExPeETJSLbARB5g3xkOG++/bgSvVtxUZHDNo=
1351-
github.com/sei-protocol/sei-cosmos v0.3.16/go.mod h1:xZYuJxxS6zdhNq+pKQPiaAjSZGU5EXe9bjrCdMBXxUQ=
1350+
github.com/sei-protocol/sei-cosmos v0.3.18 h1:QB7R+U3TEkCfSqUXPS2aX273D6EorXZtEZ9H+WwJxt4=
1351+
github.com/sei-protocol/sei-cosmos v0.3.18/go.mod h1:xZYuJxxS6zdhNq+pKQPiaAjSZGU5EXe9bjrCdMBXxUQ=
13521352
github.com/sei-protocol/sei-db v0.0.38 h1:GiQl3qBd6XgGsHkJd4I8GnOmGjGoWQg3SJAS82TTNao=
13531353
github.com/sei-protocol/sei-db v0.0.38/go.mod h1:F/ZKZA8HJPcUzSZPA8yt6pfwlGriJ4RDR4eHKSGLStI=
13541354
github.com/sei-protocol/sei-iavl v0.1.9 h1:y4mVYftxLNRs6533zl7N0/Ch+CzRQc04JDfHolIxgBE=

precompiles/bank/bank_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ func TestRun(t *testing.T) {
150150
var expectedEvts sdk.Events = []sdk.Event{
151151
// gas is sent from sender
152152
banktypes.NewCoinSpentEvent(senderAddr, sdk.NewCoins(sdk.NewCoin("usei", sdk.NewInt(200000)))),
153+
// wei events
154+
banktypes.NewWeiSpentEvent(senderAddr, sdk.NewInt(100)),
155+
banktypes.NewWeiReceivedEvent(seiAddr, sdk.NewInt(100)),
156+
sdk.NewEvent(
157+
banktypes.EventTypeWeiTransfer,
158+
sdk.NewAttribute(banktypes.AttributeKeyRecipient, seiAddr.String()),
159+
sdk.NewAttribute(banktypes.AttributeKeySender, senderAddr.String()),
160+
sdk.NewAttribute(sdk.AttributeKeyAmount, sdk.NewInt(100).String()),
161+
),
153162
// sender sends coin to the receiver
154163
banktypes.NewCoinSpentEvent(senderAddr, sdk.NewCoins(sdk.NewCoin("usei", sdk.NewInt(10)))),
155164
banktypes.NewCoinReceivedEvent(seiAddr, sdk.NewCoins(sdk.NewCoin("usei", sdk.NewInt(10)))),

x/evm/keeper/keeper.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
1515
"github.com/cosmos/cosmos-sdk/store/prefix"
1616
sdk "github.com/cosmos/cosmos-sdk/types"
17+
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
1718
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
1819
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
1920
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
@@ -245,7 +246,7 @@ func (k *Keeper) GetEVMTxDeferredInfo(ctx sdk.Context) (res []EvmTxDeferredInfo)
245246
ctx.Logger().Error(fmt.Sprintf("getting invalid tx index in EVM deferred info: %d, num of txs: %d", txIdx, len(k.txResults)))
246247
return true
247248
}
248-
if k.txResults[txIdx].Code == 0 || value.(*EvmTxDeferredInfo).Error != "" {
249+
if k.txResults[txIdx].Code == 0 || k.txResults[txIdx].Code == sdkerrors.ErrEVMVMError.ABCICode() || value.(*EvmTxDeferredInfo).Error != "" {
249250
res = append(res, *(value.(*EvmTxDeferredInfo)))
250251
}
251252
return true

x/evm/keeper/msg_server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ func TestEvmError(t *testing.T) {
670670
require.Nil(t, err)
671671

672672
res = testkeeper.EVMTestApp.DeliverTx(ctx, abci.RequestDeliverTx{Tx: txbz}, sdktx, sha256.Sum256(txbz))
673-
require.Equal(t, uint32(0), res.Code)
673+
require.Equal(t, uint32(45), res.Code)
674674
receipt, err = k.GetReceipt(ctx, common.HexToHash(res.EvmTxInfo.TxHash))
675675
require.Nil(t, err)
676676
require.Equal(t, receipt.VmError, res.EvmTxInfo.VmError)

0 commit comments

Comments
 (0)