Skip to content

Commit

Permalink
fix: delete unnecessary test (#43)
Browse files Browse the repository at this point in the history
* fix: delete unnecessary test

* docs: add CHANGELOG
  • Loading branch information
da1suk8 authored May 16, 2023
1 parent ff18c54 commit 8518b2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Features

### Improvements
* [\#43](https://github.com/Finschia/wasmd/pull/43) delete unnecessary test

### Bug Fixes
* [\#35](https://github.com/Finschia/wasmd/pull/35) stop wrap twice the response of handling non-plus wasm message in plus handler
Expand Down
28 changes: 0 additions & 28 deletions x/wasm/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1719,34 +1719,6 @@ func TestClearContractAdmin(t *testing.T) {
}
}

func TestExecuteManualInactiveContractFailure(t *testing.T) {
ctx, keepers := CreateTestInput(t, false, AvailableCapabilities)
keeper := keepers.ContractKeeper

deposit := sdk.NewCoins(sdk.NewInt64Coin("denom", 100000))
topUp := sdk.NewCoins(sdk.NewInt64Coin("denom", 5000))
creator := keepers.Faucet.NewFundedRandomAccount(ctx, deposit...)
fred := keepers.Faucet.NewFundedRandomAccount(ctx, topUp...)

wasmCode, err := os.ReadFile("./testdata/hackatom.wasm")
require.NoError(t, err)

contractID, _, err := keeper.Create(ctx, creator, wasmCode, nil)
require.NoError(t, err)

_, _, bob := keyPubAddr()
initMsg := HackatomExampleInitMsg{
Verifier: fred,
Beneficiary: bob,
}
initMsgBz, err := json.Marshal(initMsg)
require.NoError(t, err)

addr, _, err := keeper.Instantiate(ctx, contractID, creator, nil, initMsgBz, "demo contract 3", deposit)
require.NoError(t, err)
require.Equal(t, "link14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sgf2vn8", addr.String())
}

func TestPinCode(t *testing.T) {
ctx, keepers := CreateTestInput(t, false, AvailableCapabilities)
k := keepers.WasmKeeper
Expand Down

0 comments on commit 8518b2f

Please sign in to comment.