Skip to content
This repository has been archived by the owner on Jul 15, 2018. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed May 31, 2018
1 parent 826603d commit b1b784c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions example/kvstore/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func RandVals(cnt int) []types.Validator {
// don't make any tx that modify the validator state
func InitKVStore(app *PersistentKVStoreApplication) {
app.InitChain(types.ParamsInitChain{
Validators: RandVals(1),
GenesisBytes: []byte("[]"),
Validators: RandVals(1),
GenesisFile: types.GenesisFile{},
})
}
4 changes: 2 additions & 2 deletions tests/server/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func InitChain(client abcicli.Client) error {
vals[i] = &v
}
_, err := client.InitChainSync(types.RequestInitChain{
Validators: vals,
GenesisBytes: []byte("{}"),
Validators: vals,
GenesisFile: &types.GenesisFile{},
})
if err != nil {
fmt.Printf("Failed test: InitChain - %v\n", err)
Expand Down
8 changes: 4 additions & 4 deletions types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func ToParamsSetOption(req RequestSetOption) ParamsSetOption {
}

type ParamsInitChain struct {
Validators []Validator `json:"validators"`
GenesisBytes []byte `json:"genesis_bytes,omitempty"`
Validators []Validator `json:"validators"`
GenesisFile GenesisFile `json:"genesis_bytes,omitempty"`
}

func ToParamsInitChain(req RequestInitChain) ParamsInitChain {
Expand All @@ -41,8 +41,8 @@ func ToParamsInitChain(req RequestInitChain) ParamsInitChain {
vals[i] = *v
}
return ParamsInitChain{
Validators: vals,
GenesisBytes: req.GenesisBytes,
Validators: vals,
GenesisFile: *req.GenesisFile,
}
}

Expand Down

0 comments on commit b1b784c

Please sign in to comment.