From 85371cda137867b4cd40c84bcd08b873540065cb Mon Sep 17 00:00:00 2001 From: Xingchen Liao Date: Fri, 31 Mar 2023 10:50:16 -0700 Subject: [PATCH] Update EventAttribute type (#658) IBC Compatibility change Co-authored-by: Cyson --- app/app.go | 4 ++-- go.mod | 4 ++-- go.sum | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/app.go b/app/app.go index d77259f756..cf9f738cd8 100644 --- a/app/app.go +++ b/app/app.go @@ -1338,8 +1338,8 @@ func (app *App) addBadWasmDependenciesToContext(ctx sdk.Context, txResults []*ab for _, event := range txResult.Events { if event.Type == wasmtypes.EventTypeExecute { for _, attr := range event.Attributes { - if attr.Key == wasmtypes.AttributeKeyContractAddr { - addr, err := sdk.AccAddressFromBech32(attr.Value) + if string(attr.Key) == wasmtypes.AttributeKeyContractAddr { + addr, err := sdk.AccAddressFromBech32(string(attr.Value)) if err == nil { wasmContractsWithIncorrectDependencies = append(wasmContractsWithIncorrectDependencies, addr) } diff --git a/go.mod b/go.mod index a65225a9c6..12cdf64107 100644 --- a/go.mod +++ b/go.mod @@ -269,10 +269,10 @@ require ( replace ( github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.0.1 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.2.12 + github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.2.13 github.com/cosmos/iavl => github.com/sei-protocol/sei-iavl v0.1.3 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 - github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.2.1 + github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.1.183 google.golang.org/grpc => google.golang.org/grpc v1.33.2 ) diff --git a/go.sum b/go.sum index 01e325e10b..774956ac64 100644 --- a/go.sum +++ b/go.sum @@ -1067,12 +1067,12 @@ github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod github.com/securego/gosec/v2 v2.11.0 h1:+PDkpzR41OI2jrw1q6AdXZCbsNGNGT7pQjal0H0cArI= github.com/securego/gosec/v2 v2.11.0/go.mod h1:SX8bptShuG8reGC0XS09+a4H2BoWSJi+fscA+Pulbpo= github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= -github.com/sei-protocol/sei-cosmos v0.2.12 h1:DLqBDCPoMdrjlomWcjBQ0PSG0o777xtlwXtcI8Y8Y9k= -github.com/sei-protocol/sei-cosmos v0.2.12/go.mod h1:LUhhplOtRXliV1x17gbOptKPy90xSK0Sxv8zmgsMvTY= +github.com/sei-protocol/sei-cosmos v0.2.13 h1:PH4LxB6tFILuWFxp8BmoIyptELz3G2H7e9hTHreRAF0= +github.com/sei-protocol/sei-cosmos v0.2.13/go.mod h1:CYMdG9mBiQ9Dfw3Wd+JCF+ph7NpySllMAnMA3qNG5ro= github.com/sei-protocol/sei-iavl v0.1.3 h1:0hvW1NtmBlZ7ZkerQcM/n+2tFKg0vUlYWK8q/OeuCgw= github.com/sei-protocol/sei-iavl v0.1.3/go.mod h1:7PfkEVT5dcoQE+s/9KWdoXJ8VVVP1QpYYPLdxlkSXFk= -github.com/sei-protocol/sei-tendermint v0.2.1 h1:R2TKAk43tvqdNFvcqLbASjcEcN1tcgurTNV7T2kNNAY= -github.com/sei-protocol/sei-tendermint v0.2.1/go.mod h1:+BtDvAwTkE64BlxzpH9ZP7S6vUYT9wRXiZa/WW8/o4g= +github.com/sei-protocol/sei-tendermint v0.1.183 h1:d6Xa7MnKdbriOPzWBhpMFoF/lw7pZFJfEMHf3N1F+lk= +github.com/sei-protocol/sei-tendermint v0.1.183/go.mod h1:+BtDvAwTkE64BlxzpH9ZP7S6vUYT9wRXiZa/WW8/o4g= 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.0.1 h1:dRvdapc1sqWxhIB2+DKS5LfilFjOsaFwWkGkSWwQIow=