Skip to content

Commit ab0e0f3

Browse files
joohhnnnholiman
andauthored
signer/core: show helptext when clef rejects signing (ethereum#27538)
Co-authored-by: Martin Holst Swende <martin@swende.se>
1 parent 83d7f42 commit ab0e0f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

signer/core/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ func (api *SignerAPI) SignTransaction(ctx context.Context, args apitypes.SendTxA
553553
// If we are in 'rejectMode', then reject rather than show the user warnings
554554
if api.rejectMode {
555555
if err := msgs.GetWarnings(); err != nil {
556+
log.Info("Signing aborted due to warnings. In order to continue despite warnings, please use the flag '--advanced'.")
556557
return nil, err
557558
}
558559
}
@@ -625,6 +626,7 @@ func (api *SignerAPI) SignGnosisSafeTx(ctx context.Context, signerAddress common
625626
// If we are in 'rejectMode', then reject rather than show the user warnings
626627
if api.rejectMode {
627628
if err := msgs.GetWarnings(); err != nil {
629+
log.Info("Signing aborted due to warnings. In order to continue despite warnings, please use the flag '--advanced'.")
628630
return nil, err
629631
}
630632
}

0 commit comments

Comments
 (0)