@@ -78,7 +78,7 @@ pub async fn generate_and_fund_wallets(args: GenerateAndFundWalletsArgs) {
7878 let file = match File :: open ( & args. private_keys_filepath ) {
7979 Ok ( f) => f,
8080 Err ( err) => {
81- error ! ( "Could not open private keys file: {}" , err. to_string ( ) ) ;
81+ error ! ( "Could not open private keys file: {}" , err) ;
8282 return ;
8383 }
8484 } ;
@@ -136,7 +136,7 @@ pub async fn generate_and_fund_wallets(args: GenerateAndFundWalletsArgs) {
136136 let mut file = match file {
137137 Ok ( f) => f,
138138 Err ( err) => {
139- error ! ( "Could not open private keys file: {}" , err. to_string ( ) ) ;
139+ error ! ( "Could not open private keys file: {}" , err) ;
140140 return ;
141141 }
142142 } ;
@@ -171,12 +171,12 @@ pub async fn generate_and_fund_wallets(args: GenerateAndFundWalletsArgs) {
171171 let pending_transaction = match signer. send_transaction ( tx, None ) . await {
172172 Ok ( tx) => tx,
173173 Err ( err) => {
174- error ! ( "Could not fund wallet {}" , err. to_string ( ) ) ;
174+ error ! ( "Could not fund wallet {}" , err) ;
175175 return ;
176176 }
177177 } ;
178178 if let Err ( err) = pending_transaction. await {
179- error ! ( "Could not fund wallet {}" , err. to_string ( ) ) ;
179+ error ! ( "Could not fund wallet {}" , err) ;
180180 }
181181 info ! ( "Wallet {} funded" , i) ;
182182
@@ -206,7 +206,7 @@ pub async fn generate_and_fund_wallets(args: GenerateAndFundWalletsArgs) {
206206 let secret_key_hex = ethers:: utils:: hex:: encode ( signer_bytes) ;
207207
208208 if let Err ( err) = writeln ! ( file, "{}" , secret_key_hex) {
209- error ! ( "Could not store private key: {}" , err. to_string ( ) ) ;
209+ error ! ( "Could not store private key: {}" , err) ;
210210 } else {
211211 info ! ( "Private key {} stored" , i) ;
212212 }
@@ -271,7 +271,7 @@ pub async fn send_infinite_proofs(args: SendInfiniteProofsArgs) {
271271 let file = match File :: open ( & args. private_keys_filepath ) {
272272 Ok ( file) => file,
273273 Err ( err) => {
274- error ! ( "Could not open private keys file: {}" , err. to_string ( ) ) ;
274+ error ! ( "Could not open private keys file: {}" , err) ;
275275 return ;
276276 }
277277 } ;
@@ -285,7 +285,7 @@ pub async fn send_infinite_proofs(args: SendInfiniteProofsArgs) {
285285 Err ( err) => {
286286 error ! (
287287 "Could not read line from private keys file: {}" ,
288- err. to_string ( )
288+ err
289289 ) ;
290290 return ;
291291 }
0 commit comments