diff --git a/app/upgrade.go b/app/upgrade.go index c1da92ef..dd433f2a 100644 --- a/app/upgrade.go +++ b/app/upgrade.go @@ -12,7 +12,7 @@ import ( vmtypes "github.com/initia-labs/movevm/types" ) -const upgradeName = "0.5.5" +const upgradeName = "0.5.6" // RegisterUpgradeHandlers returns upgrade handlers func (app *InitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) { diff --git a/go.mod b/go.mod index 9677dffb..489ccf28 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( github.com/gorilla/mux v1.8.1 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/hashicorp/go-metrics v0.5.3 - github.com/initia-labs/OPinit v0.5.4 + github.com/initia-labs/OPinit v0.5.5 // we also need to update `LIBMOVEVM_VERSION` of Dockerfile#9 github.com/initia-labs/movevm v0.5.0 github.com/noble-assets/forwarding/v2 v2.0.0-20240521090705-86712c4c9e43 diff --git a/go.sum b/go.sum index e64309d2..c6f5cbb9 100644 --- a/go.sum +++ b/go.sum @@ -726,8 +726,8 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/initia-labs/OPinit v0.5.4 h1:5p/YwEsmKdQdlOl6swULHeENvftqaHfm/bpS+h7+zLg= -github.com/initia-labs/OPinit v0.5.4/go.mod h1:lx1amLMszculwPu8ln+btJno38UV28fd2nP7XC88ZeE= +github.com/initia-labs/OPinit v0.5.5 h1:1AxaZ7NXJThIkDBBvIvsU2RZEqXVSW5nEL0ewU0A1bQ= +github.com/initia-labs/OPinit v0.5.5/go.mod h1:lx1amLMszculwPu8ln+btJno38UV28fd2nP7XC88ZeE= github.com/initia-labs/OPinit/api v0.5.1 h1:zwyJf7HtKJCKvLJ1R9PjVfJO1L+d/jKoeFyT7WTLHFI= github.com/initia-labs/OPinit/api v0.5.1/go.mod h1:gHK6DEWb3/DqQD5LjKirUx9jilAh2UioXanoQdgqVfU= github.com/initia-labs/cometbft v0.0.0-20240923045653-ba99eb347236 h1:+HmPQ1uptOe4r5oQHuHMG5zF1F3maNoEba5uiTUMnlk= diff --git a/x/ibc/perm/keeper/keeper.go b/x/ibc/perm/keeper/keeper.go index 1eafe0ab..8610e99f 100644 --- a/x/ibc/perm/keeper/keeper.go +++ b/x/ibc/perm/keeper/keeper.go @@ -126,7 +126,7 @@ func (k Keeper) HasAdminPermission(ctx context.Context, portID, channelID string // HasRelayerPermission checks if the relayer has permission to relay packets on the channel. func (k Keeper) HasRelayerPermission(ctx context.Context, portID, channelID string, relayer sdk.AccAddress) (bool, error) { permRelayers, err := k.ChannelStates.Get(ctx, collections.Join(portID, channelID)) - if err != nil && errors.Is(err, collections.ErrNotFound) { + if (err != nil && errors.Is(err, collections.ErrNotFound)) || (err == nil && len(permRelayers.Relayers) == 0) { // if no permissioned relayers are set, all relayers are allowed return true, nil } else if err != nil {