Skip to content

Commit

Permalink
Update EventAttribute type (sei-protocol#658)
Browse files Browse the repository at this point in the history
IBC Compatibility change

Co-authored-by: Cyson <[email protected]>
  • Loading branch information
LCyson and Cyson authored Mar 31, 2023
1 parent 9c3d039 commit 85371cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 85371cd

Please sign in to comment.