Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
make missing key error message during SendTransaction more verbose (#…
Browse files Browse the repository at this point in the history
…1563)

Co-authored-by: 4rgon4ut <[email protected]>
  • Loading branch information
MalteHerrmann and 4rgon4ut committed Dec 22, 2022
1 parent c9e9f3a commit a0cd274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/backend/sign_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (b *Backend) SendTransaction(args evmtypes.TransactionArgs) (common.Hash, e
_, err := b.clientCtx.Keyring.KeyByAddress(sdk.AccAddress(args.GetFrom().Bytes()))
if err != nil {
b.logger.Error("failed to find key in keyring", "address", args.GetFrom(), "error", err.Error())
return common.Hash{}, fmt.Errorf("%s; %s", keystore.ErrNoMatch, err.Error())
return common.Hash{}, fmt.Errorf("failed to find key in the node's keyring; %s; %s", keystore.ErrNoMatch, err.Error())
}

if args.ChainID != nil && (b.chainID).Cmp((*big.Int)(args.ChainID)) != 0 {
Expand Down

0 comments on commit a0cd274

Please sign in to comment.