From 753fb995d21134bfab250450cff16f54a37d2fb4 Mon Sep 17 00:00:00 2001 From: BarryTong65 Date: Mon, 9 Sep 2024 13:27:02 +0800 Subject: [PATCH] feat: change token amount --- tests/paymaster.spec.ts | 2 +- tests/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/paymaster.spec.ts b/tests/paymaster.spec.ts index 87c9699..e972178 100644 --- a/tests/paymaster.spec.ts +++ b/tests/paymaster.spec.ts @@ -33,7 +33,7 @@ describe('paymasterQuery', () => { describe('isSponsorable', () => { test('should successfully determine if transaction is sponsorable', async () => { const tokenContract = new ethers.Contract(TOKEN_CONTRACT_ADDRESS, tokenAbi, wallet) - const tokenAmount = ethers.parseUnits('1.0', 18) + const tokenAmount = ethers.parseUnits('0', 18) const nonce = await paymasterProvider.getTransactionCount(wallet.address, 'pending') const transaction = await tokenContract.transfer.populateTransaction(RECIPIENT_ADDRESS.toLowerCase(), tokenAmount) diff --git a/tests/utils.ts b/tests/utils.ts index f6d200b..ea883d0 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -12,7 +12,7 @@ import {ethers} from 'ethers' export const client = new SponsorClient(SPONSOR_URL, undefined, {staticNetwork: ethers.Network.from(Number(CHAIN_ID))}) -// Provider for assembling the transaction (e.g., mainnet) +// Provider for assembling the transaction (e.g., testnet) export const assemblyProvider = new ethers.JsonRpcProvider(CHAIN_URL) // Provider for sending the transaction (e.g., could be a different network or provider)