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

Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
John Chase 2023-07-06 15:50:44 +08:00 committed by GitHub
parent 83d7f426d1
commit ab0e0f3517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}
}
@ -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
}
}