Merge PR #3698: Prompt User Confirmation Prior to Signing & Broadcasting
* Prompt user confirmation prior to sign & broadcasting * Update confirmation message * Update and fix existing CLI integration tests * Implement CLI integration test for tx confirmation * Fix order of input into tx send
This commit is contained in:
committed by
Christopher Goes
parent
250dc9807b
commit
feb98bcd05
@@ -174,8 +174,9 @@ func (bldr TxBuilder) WithAccountNumber(accnum uint64) TxBuilder {
|
||||
return bldr
|
||||
}
|
||||
|
||||
// BuildSignMsg builds a single message to be signed from a TxBuilder given a set of
|
||||
// messages. It returns an error if a fee is supplied but cannot be parsed.
|
||||
// BuildSignMsg builds a single message to be signed from a TxBuilder given a
|
||||
// set of messages. It returns an error if a fee is supplied but cannot be
|
||||
// parsed.
|
||||
func (bldr TxBuilder) BuildSignMsg(msgs []sdk.Msg) (StdSignMsg, error) {
|
||||
chainID := bldr.chainID
|
||||
if chainID == "" {
|
||||
@@ -221,8 +222,7 @@ func (bldr TxBuilder) Sign(name, passphrase string, msg StdSignMsg) ([]byte, err
|
||||
}
|
||||
|
||||
// BuildAndSign builds a single message to be signed, and signs a transaction
|
||||
// with the built message given a name, passphrase, and a set of
|
||||
// messages.
|
||||
// with the built message given a name, passphrase, and a set of messages.
|
||||
func (bldr TxBuilder) BuildAndSign(name, passphrase string, msgs []sdk.Msg) ([]byte, error) {
|
||||
msg, err := bldr.BuildSignMsg(msgs)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user