Rename SetOption to InitState

This commit is contained in:
Ethan Frey
2017-08-03 21:41:23 +02:00
parent eb08136104
commit 4b69f1d5ba
22 changed files with 100 additions and 84 deletions
@@ -36,12 +36,12 @@ func TestCounterPlugin(t *testing.T) {
store,
logger.With("module", "app"),
)
bcApp.SetOption("base/chain_id", chainID)
bcApp.InitState("base/chain_id", chainID)
// Account initialization
bal := coin.Coins{{"", 1000}, {"gold", 1000}}
acct := coin.NewAccountWithKey(bal)
log := bcApp.SetOption("coin/account", acct.MakeOption())
log := bcApp.InitState("coin/account", acct.MakeOption())
require.Equal("Success", log)
// Deliver a CounterTx