Unverified Commit ab0e0f35 authored by John Chase's avatar John Chase Committed by GitHub

signer/core: show helptext when clef rejects signing (#27538)

Co-authored-by: 's avatarMartin Holst Swende <martin@swende.se>
parent 83d7f426
...@@ -553,6 +553,7 @@ func (api *SignerAPI) SignTransaction(ctx context.Context, args apitypes.SendTxA ...@@ -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 we are in 'rejectMode', then reject rather than show the user warnings
if api.rejectMode { if api.rejectMode {
if err := msgs.GetWarnings(); err != nil { 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 return nil, err
} }
} }
...@@ -625,6 +626,7 @@ func (api *SignerAPI) SignGnosisSafeTx(ctx context.Context, signerAddress common ...@@ -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 we are in 'rejectMode', then reject rather than show the user warnings
if api.rejectMode { if api.rejectMode {
if err := msgs.GetWarnings(); err != nil { 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 return nil, err
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment