Skip to content

Commit

Permalink
Fix keeper test
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Aug 24, 2022
1 parent 9d63bc0 commit 20fb936
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions x/wasm/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -875,9 +875,9 @@ func TestMigrate(t *testing.T) {
ibcCodeID := StoreIBCReflectContract(t, ctx, keepers).CodeID
require.NotEqual(t, originalCodeID, newCodeID)

restrictedCodeID := StoreHackatomExampleContract(t, ctx, keepers).CodeID
keeper.SetAccessConfig(ctx, restrictedCodeID, types.AllowNobody)
require.NotEqual(t, originalCodeID, restrictedCodeID)
restrictedCodeExample := StoreHackatomExampleContract(t, ctx, keepers)
require.NoError(t, keeper.SetAccessConfig(ctx, restrictedCodeExample.CodeID, restrictedCodeExample.CreatorAddr, types.AllowNobody))
require.NotEqual(t, originalCodeID, restrictedCodeExample.CodeID)

anyAddr := RandomAccountAddress(t)
newVerifierAddr := RandomAccountAddress(t)
Expand Down Expand Up @@ -961,7 +961,7 @@ func TestMigrate(t *testing.T) {
caller: creator,
initMsg: initMsgBz,
fromCodeID: originalCodeID,
toCodeID: restrictedCodeID,
toCodeID: restrictedCodeExample.CodeID,
migrateMsg: migMsgBz,
expErr: sdkerrors.ErrUnauthorized,
},
Expand Down Expand Up @@ -1836,6 +1836,7 @@ func TestBuildContractAddress(t *testing.T) {
})
}
}

func TestSetAccessConfig(t *testing.T) {
parentCtx, keepers := CreateTestInput(t, false, SupportedFeatures)
k := keepers.WasmKeeper
Expand Down Expand Up @@ -1915,8 +1916,6 @@ func TestSetAccessConfig(t *testing.T) {
return
}
require.NoError(t, gotErr)

})
}

}

0 comments on commit 20fb936

Please sign in to comment.