diff --git a/x/ante/ante.go b/x/ante/ante.go index 484c2b510..80f842805 100644 --- a/x/ante/ante.go +++ b/x/ante/ante.go @@ -107,6 +107,10 @@ func (d UndelegateDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate boo chains := d.nexus.GetChains(ctx) for _, chain := range chains { + if !d.nexus.IsChainActivated(ctx, chain) { + continue + } + nextKeyID, idFound := d.multiSig.GetNextKeyID(ctx, chain.Name) key, keyFound := d.multiSig.GetKey(ctx, nextKeyID) if idFound && keyFound && !key.GetWeight(valAddress).IsZero() { diff --git a/x/ante/types/expected_keepers.go b/x/ante/types/expected_keepers.go index d834f5279..2b2c78739 100644 --- a/x/ante/types/expected_keepers.go +++ b/x/ante/types/expected_keepers.go @@ -22,6 +22,7 @@ type MultiSig interface { // Nexus provides access to the nexus functionality type Nexus interface { GetChains(ctx sdk.Context) []nexus.Chain + IsChainActivated(ctx sdk.Context, chain nexus.Chain) bool } // Snapshotter provides access to the snapshot functionality