Skip to content

Commit 753fb99

Browse files
committed
feat: change token amount
1 parent 9f9e60e commit 753fb99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/paymaster.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('paymasterQuery', () => {
3333
describe('isSponsorable', () => {
3434
test('should successfully determine if transaction is sponsorable', async () => {
3535
const tokenContract = new ethers.Contract(TOKEN_CONTRACT_ADDRESS, tokenAbi, wallet)
36-
const tokenAmount = ethers.parseUnits('1.0', 18)
36+
const tokenAmount = ethers.parseUnits('0', 18)
3737
const nonce = await paymasterProvider.getTransactionCount(wallet.address, 'pending')
3838

3939
const transaction = await tokenContract.transfer.populateTransaction(RECIPIENT_ADDRESS.toLowerCase(), tokenAmount)

tests/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {ethers} from 'ethers'
1212

1313
export const client = new SponsorClient(SPONSOR_URL, undefined, {staticNetwork: ethers.Network.from(Number(CHAIN_ID))})
1414

15-
// Provider for assembling the transaction (e.g., mainnet)
15+
// Provider for assembling the transaction (e.g., testnet)
1616
export const assemblyProvider = new ethers.JsonRpcProvider(CHAIN_URL)
1717

1818
// Provider for sending the transaction (e.g., could be a different network or provider)

0 commit comments

Comments
 (0)