strings -> mycoin (cointype change)

This commit is contained in:
rigelrozanski
2017-10-11 13:24:49 -04:00
parent d3b4d42458
commit 40c79a65b3
24 changed files with 93 additions and 93 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ func BenchmarkSimpleTransfer(b *testing.B) {
logger := log.NewNopLogger()
// set the initial account
acct := NewAccountWithKey(Coins{{"strings", 1234567890}})
acct := NewAccountWithKey(Coins{{"mycoin", 1234567890}})
h.InitState(logger, store, NameCoin, "account", acct.MakeOption(), nil)
sender := acct.Actor()
receiver := sdk.Actor{App: "foo", Address: cmn.RandBytes(20)}
@@ -35,7 +35,7 @@ func BenchmarkSimpleTransfer(b *testing.B) {
// now, loop...
for i := 1; i <= b.N; i++ {
ctx := stack.MockContext("foo", 100).WithPermissions(sender)
tx := makeSimpleTx(sender, receiver, Coins{{"strings", 2}})
tx := makeSimpleTx(sender, receiver, Coins{{"mycoin", 2}})
_, err := h.DeliverTx(ctx, store, tx, nil)
// never should error
if err != nil {
+1 -1
View File
@@ -69,7 +69,7 @@ func TestParse(t *testing.T) {
{"98 bar , 1 foo ", true, Coins{{"bar", 98}, {"foo", 1}}},
{" 55\t \t bling\n", true, Coins{{"bling", 55}}},
{"2foo, 97 bar", true, Coins{{"bar", 97}, {"foo", 2}}},
{"5 strings,", false, nil}, // no empty coins in a list
{"5 mycoin,", false, nil}, // no empty coins in a list
{"2 3foo, 97 bar", false, nil}, // 3foo is invalid coin name
{"11me coin, 12you coin", false, nil}, // no spaces in coin names
{"1.2btc", false, nil}, // amount must be integer
+1 -1
View File
@@ -46,7 +46,7 @@ func (FeeWrapper) Wrap(tx sdk.Tx) (res sdk.Tx, err error) {
// Register adds the sequence flags to the cli
func (FeeWrapper) Register(fs *pflag.FlagSet) {
fs.String(FlagFee, "0strings", "Coins for the transaction fee of the format <amt><coin>")
fs.String(FlagFee, "0mycoin", "Coins for the transaction fee of the format <amt><coin>")
fs.String(FlagPayer, "", "Account to pay fee if not current signer (for multisig)")
}