Skip to content

Commit

Permalink
stroge code
Browse files Browse the repository at this point in the history
  • Loading branch information
hexinggo committed Sep 24, 2020
1 parent 3ffe14d commit d6c38e9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ public void adjustAllowance(byte[] address, long amount) {
public void adjustAllowance(AccountStore accountStore, byte[] accountAddress, long amount)
throws BalanceInsufficientException {
AccountCapsule account = accountStore.getUnchecked(accountAddress);
if (account == null) {
return;
}
long allowance = account.getAllowance();
if (amount == 0) {
return;
Expand Down

0 comments on commit d6c38e9

Please sign in to comment.