Skip to content

Commit

Permalink
feat: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkparti committed Oct 3, 2023
1 parent 847e28b commit e06c27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/WalletService.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class WalletService {
}

const tokenModel = new Token(this._session);
const tokenCount = await tokenModel.countTokenByWallet(senderWallet);
const tokenCount = await tokenModel.countTokenByWallet(senderWallet.id);

if (totalAmountToTransfer > tokenCount)
throw new HttpError(422, 'sender does not have enough tokens');
Expand Down

0 comments on commit e06c27f

Please sign in to comment.