Skip to content

Commit

Permalink
signer/core: show helptext when clef rejects signing (ethereum#27538)
Browse files Browse the repository at this point in the history

Co-authored-by: Martin Holst Swende <martin@swende.se>
  • Loading branch information
2 people authored and devopsbo3 committed Nov 10, 2023
1 parent 625e847 commit 2a99cd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions signer/core/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ func (api *SignerAPI) SignTransaction(ctx context.Context, args apitypes.SendTxA
// If we are in 'rejectMode', then reject rather than show the user warnings
if api.rejectMode {
if err := msgs.GetWarnings(); err != nil {
log.Info("Signing aborted due to warnings. In order to continue despite warnings, please use the flag '--advanced'.")
return nil, err
}
}
Expand Down Expand Up @@ -625,6 +626,7 @@ func (api *SignerAPI) SignGnosisSafeTx(ctx context.Context, signerAddress common
// If we are in 'rejectMode', then reject rather than show the user warnings
if api.rejectMode {
if err := msgs.GetWarnings(); err != nil {
log.Info("Signing aborted due to warnings. In order to continue despite warnings, please use the flag '--advanced'.")
return nil, err
}
}
Expand Down

0 comments on commit 2a99cd8

Please sign in to comment.