Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
fix compilation err
Browse files Browse the repository at this point in the history
  • Loading branch information
taryune committed Sep 21, 2023
1 parent 17e2854 commit eb34a45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions x/furnace/client/cli/query_epoch_burn_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ func TestShowEpochBurnConfig(t *testing.T) {
var resp types.QueryGetEpochBurnConfigResponse
require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp))
require.NotNil(t, resp.EpochBurnConfig)
require.Equal(t,
nullify.Fill(&tc.obj),
nullify.Fill(&resp.EpochBurnConfig),
)
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions x/furnace/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestGenesis(t *testing.T) {
genesisState := types.GenesisState{
Params: types.DefaultParams(),

EpochBurnConfig: &types.EpochBurnConfig{
EpochBurnConfig: types.EpochBurnConfig{
EpochIdentifier: "11",
},
BurnAmounts: []types.BurnAmount{
Expand All @@ -37,6 +37,6 @@ func TestGenesis(t *testing.T) {
nullify.Fill(got)

require.Equal(t, genesisState.EpochBurnConfig, got.EpochBurnConfig)
require.ElementsMatch(t, genesisState.BurnAmounts, got.BurnAmountList)
require.ElementsMatch(t, genesisState.BurnAmounts, got.BurnAmounts)
// this line is used by starport scaffolding # genesis/test/assert
}
4 changes: 2 additions & 2 deletions x/furnace/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestGenesisState_Validate(t *testing.T) {
EpochBurnConfig: types.EpochBurnConfig{
EpochIdentifier: "35",
},
BurnAmountList: []types.BurnAmount{
BurnAmounts: []types.BurnAmount{
{
Identifier: 0,
},
Expand All @@ -40,7 +40,7 @@ func TestGenesisState_Validate(t *testing.T) {
{
desc: "duplicated burnAmount",
genState: &types.GenesisState{
BurnAmountList: []types.BurnAmount{
BurnAmounts: []types.BurnAmount{
{
Identifier: 0,
},
Expand Down

0 comments on commit eb34a45

Please sign in to comment.