Skip to content

Commit

Permalink
test: use utils.L2_BASE_TOKEN_ADDRESS as a address when working wit…
Browse files Browse the repository at this point in the history
…h base token
  • Loading branch information
danijelTxFusion committed Jun 6, 2024
1 parent 183fa57 commit 45667d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tests/integration/smart-account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ describe('SmartAccount', async () => {
const amount = 7_000_000_000n;
const l2BalanceBeforeWithdrawal = await account.getBalance();
const withdrawTx = await account.withdraw({
token: await wallet.getBaseToken(),
token: utils.L2_BASE_TOKEN_ADDRESS,
to: await account.getAddress(),
amount: amount,
});
Expand Down Expand Up @@ -795,7 +795,7 @@ describe('SmartAccount', async () => {
await account.getBalance(APPROVAL_TOKEN);

const withdrawTx = await account.withdraw({
token: await wallet.getBaseToken(),
token: utils.L2_BASE_TOKEN_ADDRESS,
to: await account.getAddress(),
amount: amount,
paymasterParams: utils.getPaymasterParams(PAYMASTER, {
Expand Down Expand Up @@ -1562,7 +1562,7 @@ describe('MultisigECDSASmartAccount', async () => {
const amount = 7_000_000_000n;
const l2BalanceBeforeWithdrawal = await account.getBalance();
const withdrawTx = await account.withdraw({
token: await wallet.getBaseToken(),
token: utils.L2_BASE_TOKEN_ADDRESS,
to: await wallet.getAddress(), // send to L1 EOA since AA does not exit on L1
amount: amount,
});
Expand Down Expand Up @@ -1595,7 +1595,7 @@ describe('MultisigECDSASmartAccount', async () => {
await account.getBalance(APPROVAL_TOKEN);

const withdrawTx = await account.withdraw({
token: await wallet.getBaseToken(),
token: utils.L2_BASE_TOKEN_ADDRESS,
to: await wallet.getAddress(), // send to L1 EOA since AA does not exit on L1
amount: amount,
paymasterParams: utils.getPaymasterParams(PAYMASTER, {
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/wallet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ describe('Wallet', () => {
const amount = 7_000_000_000n;
const l2BalanceBeforeWithdrawal = await wallet.getBalance();
const withdrawTx = await wallet.withdraw({
token: await wallet.getBaseToken(),
token: utils.L2_BASE_TOKEN_ADDRESS,
to: await wallet.getAddress(),
amount: amount,
});
Expand Down Expand Up @@ -1440,7 +1440,7 @@ describe('Wallet', () => {
await wallet.getBalance(APPROVAL_TOKEN);

const withdrawTx = await wallet.withdraw({
token: await wallet.getBaseToken(),
token: utils.L2_BASE_TOKEN_ADDRESS,
to: await wallet.getAddress(),
amount: amount,
paymasterParams: utils.getPaymasterParams(PAYMASTER, {
Expand Down Expand Up @@ -1900,7 +1900,7 @@ describe('Wallet', () => {
const amount = 7_000_000_000n;
const balanceBeforeTransfer = await provider.getBalance(ADDRESS2);
const tx = await wallet.transfer({
token: await wallet.getBaseToken(),
token: utils.L2_BASE_TOKEN_ADDRESS,
to: ADDRESS2,
amount: amount,
});
Expand Down

0 comments on commit 45667d2

Please sign in to comment.