Skip to content

Commit

Permalink
fix(core-transactions): reindex wallet when applying delegate resigna…
Browse files Browse the repository at this point in the history
…tion (#3185)
  • Loading branch information
spkjp committed Nov 21, 2019
1 parent 168c0c7 commit 2ab2593
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class DelegateResignationTransactionHandler extends TransactionHandler {
const senderWallet: Contracts.State.Wallet = walletRepository.findByPublicKey(transaction.data.senderPublicKey);

senderWallet.setAttribute("delegate.resigned", true);
walletRepository.reindex(senderWallet);
}

public async revertForSender(
Expand All @@ -127,11 +128,11 @@ export class DelegateResignationTransactionHandler extends TransactionHandler {
transaction: Interfaces.ITransaction,
customWalletRepository?: Contracts.State.WalletRepository,
// tslint:disable-next-line: no-empty
): Promise<void> {}
): Promise<void> { }

public async revertForRecipient(
transaction: Interfaces.ITransaction,
customWalletRepository?: Contracts.State.WalletRepository,
// tslint:disable-next-line: no-empty
): Promise<void> {}
): Promise<void> { }
}

0 comments on commit 2ab2593

Please sign in to comment.