Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore: adapt send token script
Browse files Browse the repository at this point in the history
Signed-off-by: Jawad Tariq <[email protected]>
  • Loading branch information
JDawg287 committed Aug 22, 2023
1 parent 8dadb25 commit c53440b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/test/send-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ const main = async function (...args: string[]) {
)
const tx = await erc20Messaging.sendToken(
cc.TARGET_SUBNET_ID_4,
receiverAddress,
tokenAddress,
receiverAddress,
amount,
{
gasLimit: 5_000_000,
Expand All @@ -145,6 +145,9 @@ const main = async function (...args: string[]) {
' amount:',
amount
)

const remainingBalance = await erc20.balanceOf(wallet.address)
console.log('Remaining balance:', remainingBalance.toString())
} else {
console.log('Missing CrossSubnetMessageSent event')
}
Expand Down

0 comments on commit c53440b

Please sign in to comment.