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

Co-authored-by: Martin Holst Swende <martin@swende.se>
pull/27663/head
John Chase 1 year ago committed by GitHub
parent 83d7f426d1
commit ab0e0f3517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      signer/core/api.go

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

Loading…
Cancel
Save