@@ -5,9 +5,7 @@ import { celo } from "../../chains/chain-definitions/celo.js";
55import { defineChain } from "../../chains/utils.js" ;
66import { sendTransaction } from "../../transaction/actions/send-transaction.js" ;
77import { prepareTransaction } from "../../transaction/prepare-transaction.js" ;
8- import type { Address } from "../../utils/address.js" ;
98import { privateKeyToAccount } from "../private-key.js" ;
10- import { getWalletBalance } from "../utils/getWalletBalance.js" ;
119import { TokenPaymaster } from "./lib/constants.js" ;
1210import { smartWallet } from "./smart-wallet.js" ;
1311
@@ -39,17 +37,6 @@ describe.runIf(process.env.TW_SECRET_KEY).skip.sequential(
3937 client : TEST_CLIENT ,
4038 personalAccount,
4139 } ) ;
42- const smartWalletAddress = smartAccount . address as Address ;
43- console . log ( "smartWalletAddress" , smartWalletAddress ) ;
44- console . log (
45- "balance before" ,
46- await getWalletBalance ( {
47- address : smartAccount . address ,
48- chain : chain ,
49- client,
50- tokenAddress : tokenPaymaster . tokenAddress ,
51- } ) ,
52- ) ;
5340 const tx = prepareTransaction ( {
5441 client,
5542 chain,
@@ -61,15 +48,6 @@ describe.runIf(process.env.TW_SECRET_KEY).skip.sequential(
6148 account : smartAccount ,
6249 } ) ;
6350 expect ( receipt . transactionHash ) . toBeDefined ( ) ;
64- console . log (
65- "balance after" ,
66- await getWalletBalance ( {
67- address : smartAccount . address ,
68- chain : chain ,
69- client,
70- tokenAddress : tokenPaymaster . tokenAddress ,
71- } ) ,
72- ) ;
7351 } ) ;
7452
7553 it . skip ( "should send a transaction with base celo" , async ( ) => {
@@ -91,17 +69,6 @@ describe.runIf(process.env.TW_SECRET_KEY).skip.sequential(
9169 client : TEST_CLIENT ,
9270 personalAccount,
9371 } ) ;
94- const smartWalletAddress = smartAccount . address as Address ;
95- console . log ( "smartWalletAddress" , smartWalletAddress ) ;
96- console . log (
97- "balance before" ,
98- await getWalletBalance ( {
99- address : smartAccount . address ,
100- chain : chain ,
101- client,
102- tokenAddress : tokenPaymaster . tokenAddress ,
103- } ) ,
104- ) ;
10572 const tx = prepareTransaction ( {
10673 client,
10774 chain,
@@ -113,15 +80,6 @@ describe.runIf(process.env.TW_SECRET_KEY).skip.sequential(
11380 account : smartAccount ,
11481 } ) ;
11582 expect ( receipt . transactionHash ) . toBeDefined ( ) ;
116- console . log (
117- "balance after" ,
118- await getWalletBalance ( {
119- address : smartAccount . address ,
120- chain : chain ,
121- client,
122- tokenAddress : tokenPaymaster . tokenAddress ,
123- } ) ,
124- ) ;
12583 } ) ;
12684
12785 it ( "should send a transaction with base lisk" , async ( ) => {
@@ -143,17 +101,6 @@ describe.runIf(process.env.TW_SECRET_KEY).skip.sequential(
143101 client : TEST_CLIENT ,
144102 personalAccount,
145103 } ) ;
146- const smartWalletAddress = smartAccount . address as Address ;
147- console . log ( "smartWalletAddress" , smartWalletAddress ) ;
148- console . log (
149- "balance before" ,
150- await getWalletBalance ( {
151- address : smartAccount . address ,
152- chain : chain ,
153- client,
154- tokenAddress : tokenPaymaster . tokenAddress ,
155- } ) ,
156- ) ;
157104 const tx = prepareTransaction ( {
158105 client,
159106 chain,
@@ -165,15 +112,6 @@ describe.runIf(process.env.TW_SECRET_KEY).skip.sequential(
165112 account : smartAccount ,
166113 } ) ;
167114 expect ( receipt . transactionHash ) . toBeDefined ( ) ;
168- console . log (
169- "balance after" ,
170- await getWalletBalance ( {
171- address : smartAccount . address ,
172- chain : chain ,
173- client,
174- tokenAddress : tokenPaymaster . tokenAddress ,
175- } ) ,
176- ) ;
177115 } ) ;
178116 } ,
179117) ;
0 commit comments