Skip to content

Commit

Permalink
polish basic_test
Browse files Browse the repository at this point in the history
  • Loading branch information
magiodev committed Jun 16, 2024
1 parent 39b8967 commit cd33dbe
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions e2e/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,7 @@ func (suite *BasicTestSuite) SetupTest() {
suite.chainA = suite.coordinator.GetChain(wasmibctesting.GetChainID(0))
}

func (suite *BasicTestSuite) TestStoreCodeIcs721() {
// Store the ICS721 contract.
chainAStoreResp := suite.chainA.StoreCodeFile("../artifacts/ics721_base.wasm")
require.Equal(suite.T(), uint64(1), chainAStoreResp.CodeID)
}

func (suite *BasicTestSuite) TestStoreCodeCw721() {
// Store the cw721 contract.
chainAStoreResp := suite.chainA.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
require.Equal(suite.T(), uint64(1), chainAStoreResp.CodeID)
}

func (suite *BasicTestSuite) TestStoreCodeBoth() {
func (suite *BasicTestSuite) TestStoreCodes() {
// Store the ICS721 contract.
chainAStoreResp := suite.chainA.StoreCodeFile("../artifacts/ics721_base.wasm")
require.Equal(suite.T(), uint64(1), chainAStoreResp.CodeID)
Expand All @@ -53,15 +41,11 @@ func (suite *BasicTestSuite) TestStoreCodeBoth() {
require.Equal(suite.T(), uint64(2), chainAStoreResp.CodeID)
}

func (suite *BasicTestSuite) TestStoreCodeBothInstantiateIcs721() {
func (suite *BasicTestSuite) TestInstantiateIcs721() {
// Store the ICS721 contract.
chainAStoreResp := suite.chainA.StoreCodeFile("../artifacts/ics721_base.wasm")
require.Equal(suite.T(), uint64(1), chainAStoreResp.CodeID)

// Store the cw721 contract.
chainAStoreResp = suite.chainA.StoreCodeFile("../artifacts/ics721_base.wasm")
require.Equal(suite.T(), uint64(2), chainAStoreResp.CodeID)

// Instantiate the ICS721 contract.
instantiateICS721 := test_suite.InstantiateICS721Bridge{
CW721CodeID: 1,
Expand All @@ -73,4 +57,4 @@ func (suite *BasicTestSuite) TestStoreCodeBothInstantiateIcs721() {
instantiateICS721Raw, err := json.Marshal(instantiateICS721)
require.NoError(suite.T(), err)
suite.chainABridge = suite.chainA.InstantiateContract(1, instantiateICS721Raw)
}
}

0 comments on commit cd33dbe

Please sign in to comment.