diff --git a/packages/core-magistrate-transactions/src/handlers/business-resignation.ts b/packages/core-magistrate-transactions/src/handlers/business-resignation.ts index eeb1ca8d61..5cf9c7ccbc 100644 --- a/packages/core-magistrate-transactions/src/handlers/business-resignation.ts +++ b/packages/core-magistrate-transactions/src/handlers/business-resignation.ts @@ -1,7 +1,7 @@ import { Database, EventEmitter, State, TransactionPool } from "@arkecosystem/core-interfaces"; import { Enums, Transactions as MagistrateTransactions } from "@arkecosystem/core-magistrate-crypto"; import { Handlers, TransactionReader } from "@arkecosystem/core-transactions"; -import { Interfaces, Transactions } from "@arkecosystem/crypto"; +import { Interfaces, Transactions, Utils } from "@arkecosystem/crypto"; import { BridechainsAreNotResignedError, BusinessIsNotRegisteredError, BusinessIsResignedError } from "../errors"; import { MagistrateApplicationEvents } from "../events"; import { IBridgechainWalletAttributes, IBusinessWalletAttributes } from "../interfaces"; @@ -40,6 +40,10 @@ export class BusinessResignationTransactionHandler extends MagistrateTransaction wallet: State.IWallet, walletManager: State.IWalletManager, ): Promise { + if (Utils.isException(transaction.data)) { + return; + } + if (!wallet.hasAttribute("business")) { throw new BusinessIsNotRegisteredError(); } diff --git a/packages/crypto/src/networks/devnet/exceptions.json b/packages/crypto/src/networks/devnet/exceptions.json index 7b1e362234..0f57248aec 100644 --- a/packages/crypto/src/networks/devnet/exceptions.json +++ b/packages/crypto/src/networks/devnet/exceptions.json @@ -518,6 +518,8 @@ "f0c21df14e960b7cb63a106149ea68be9691d1c8f0247e63f0afd039c69b35e3", "b30e726f497cd33119e43f14b05050f78534d9738f872c4ec087ea65d1647795", "6d853dc1feba4c93fd185e90be3aae27a40191f1113102a0310abac6c0da48a6", - "acc5a085fc12c91bba07b6ebb651111fdeca1b78a226dc9f7438715ddd6b6754" + "acc5a085fc12c91bba07b6ebb651111fdeca1b78a226dc9f7438715ddd6b6754", + "86cdb2493926befea4a55f31713378eba1839699f1c66d3fc46c909df38bc912", + "06b91270143cdacc94cddf46b99d60463b96c529c75a3c04cf7101c7a44b0bf8" ] }