Skip to content

Commit

Permalink
refactor: removed fatal log when address not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashk767 committed Dec 13, 2024
1 parent a059109 commit 4aa1342
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ func (*UtilsStruct) GetTxnOpts(rpcParameters rpc.RPCParameters, transactionData
return nil, errors.New("account manager not initialised")
}
privateKey, err := account.AccountManager.GetPrivateKey(account.Address, account.Password)
CheckError("Error in fetching private key: ", err)
if err != nil {
log.Error("Error in fetching private key: ", err)
return nil, err
}

nonce, err := ClientInterface.GetNonceAtWithRetry(rpcParameters, common.HexToAddress(account.Address))
if err != nil {
Expand Down

0 comments on commit 4aa1342

Please sign in to comment.