Clean up genesis, add godoc to genesis and app

This commit is contained in:
Ethan Frey
2017-10-20 13:42:03 +02:00
parent 7631680159
commit acdc083821
7 changed files with 105 additions and 22 deletions
@@ -31,13 +31,13 @@ func TestCounterPlugin(t *testing.T) {
store, err := app.MockStoreApp("counter", logger)
require.Nil(err, "%+v", err)
bcApp := app.NewBaseApp(store, h, nil)
_, err = bcApp.InitState("base", "chain_id", chainID)
err = bcApp.InitState("base", "chain_id", chainID)
require.Nil(err, "%+v", err)
// Account initialization
bal := coin.Coins{{"", 1000}, {"gold", 1000}}
acct := coin.NewAccountWithKey(bal)
_, err = bcApp.InitState("coin", "account", acct.MakeOption())
err = bcApp.InitState("coin", "account", acct.MakeOption())
require.Nil(err, "%+v", err)
// Deliver a CounterTx