Skip to content

Commit

Permalink
fix(core-transactions): add additional bridgechain registration excep…
Browse files Browse the repository at this point in the history
…tion handling (#3222)
  • Loading branch information
spkjp committed Nov 22, 2019
1 parent 0cb6ba0 commit 7d7a4a8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export class BridgechainRegistrationTransactionHandler extends MagistrateTransac
wallet: Contracts.State.Wallet,
customWalletRepository?: Contracts.State.WalletRepository,
): Promise<void> {
if (Utils.isException(transaction.data.id)) {
return;
}

if (!wallet.hasAttribute("business")) {
throw new WalletIsNotBusinessError();
}
Expand Down

0 comments on commit 7d7a4a8

Please sign in to comment.