Skip to content

Commit

Permalink
remove internal send near same account as contr assert
Browse files Browse the repository at this point in the history
  • Loading branch information
idea404 committed Oct 11, 2022
1 parent 9f6619a commit ba5f8d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/src/fungible-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export class FungibleToken {

internalSendNEAR(receivingAccountId, amountBigInt) {
assert(amountBigInt > BigInt("0"), "The amount should be a positive number");
assert(receivingAccountId != near.currentAccountId(), "Can't transfer to the contract itself");
assert(amountBigInt < near.accountBalance(), `Not enough balance ${near.accountBalance()} to cover transfer of ${amountBigInt} yoctoNEAR`);
const transferPromiseId = near.promiseBatchCreate(receivingAccountId);
near.promiseBatchActionTransfer(transferPromiseId, amountBigInt);
Expand Down

0 comments on commit ba5f8d0

Please sign in to comment.