working nonce module

This commit is contained in:
rigel rozanski
2017-07-18 12:08:27 +02:00
committed by Ethan Frey
parent e40e331f87
commit 50e4d31149
4 changed files with 120 additions and 0 deletions
+4
View File
@@ -17,6 +17,7 @@ import (
"github.com/tendermint/basecoin/modules/base"
"github.com/tendermint/basecoin/modules/coin"
"github.com/tendermint/basecoin/modules/fee"
"github.com/tendermint/basecoin/modules/nonce"
)
//-------------------------
@@ -74,6 +75,9 @@ func doSendTx(cmd *cobra.Command, args []string) error {
return err
}
// XXX - what is the nonceAccount here!!!
tx = nonce.NewTx(tx, viper.GetInt(FlagSequence), nonceAccount)
// Note: this is single sig (no multi sig yet)
stx := auth.NewSig(tx)