Skip to content

Commit

Permalink
Remove panic in BuildAll (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodeymo authored Oct 2, 2024
1 parent b8088bd commit bce0284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainio/clients/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func BuildAll(
}
signerV2, addr, err := signerv2.SignerFromConfig(signerv2.Config{PrivateKey: ecdsaPrivateKey}, chainid)
if err != nil {
panic(err)
return nil, utils.WrapError("Failed to create the signer from the given config", err)
}

pkWallet, err := wallet.NewPrivateKeyWallet(ethHttpClient, signerV2, addr, logger)
Expand Down

0 comments on commit bce0284

Please sign in to comment.