Moved Coins from types -> modules/coin

This commit is contained in:
Ethan Frey
2017-07-06 14:59:45 +02:00
parent 49357a3574
commit 6983f61961
21 changed files with 152 additions and 136 deletions
+1 -2
View File
@@ -16,7 +16,6 @@ import (
"github.com/tendermint/basecoin/modules/coin"
"github.com/tendermint/basecoin/stack"
"github.com/tendermint/basecoin/txs"
btypes "github.com/tendermint/basecoin/types"
)
//-------------------------
@@ -94,7 +93,7 @@ func readSendTxFlags() (tx basecoin.Tx, err error) {
// // set the gas
// tx.Gas = viper.GetInt64(FlagGas)
amountCoins, err := btypes.ParseCoins(viper.GetString(FlagAmount))
amountCoins, err := coin.ParseCoins(viper.GetString(FlagAmount))
if err != nil {
return tx, err
}
+2 -2
View File
@@ -253,9 +253,9 @@ package commands
// ibc.IBCTx `json:"unwrap"`
// }{ibcTx}))
// smallCoins := types.Coin{"mycoin", 1}
// smallCoins := coin.Coin{"mycoin", 1}
// input := types.NewTxInput(r.privKey.PubKey, types.Coins{smallCoins}, sequence)
// input := types.NewTxInput(r.privKey.PubKey, coin.Coins{smallCoins}, sequence)
// tx := &types.AppTx{
// Gas: 0,
// Fee: smallCoins,