Skip to content

Commit

Permalink
replace wasm file in go tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taitruong committed Jun 10, 2024
1 parent 1bcf585 commit e98f6e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion e2e/adversarial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (suite *AdversarialTestSuite) SetupTest() {
resp := chain.StoreCodeFile("../artifacts/ics721_base.wasm")
require.Equal(suite.T(), uint64(1), resp.CodeID)

resp = chain.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
resp = chain.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")
require.Equal(suite.T(), uint64(2), resp.CodeID)

resp = chain.StoreCodeFile("../artifacts/ics721_base_tester.wasm")
Expand Down
2 changes: 1 addition & 1 deletion e2e/callback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (suite *CbTestSuite) SetupTest() {
resp := chain.StoreCodeFile("../artifacts/ics721_base.wasm")
require.Equal(suite.T(), uint64(1), resp.CodeID)

resp = chain.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
resp = chain.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")
require.Equal(suite.T(), uint64(2), resp.CodeID)

resp = chain.StoreCodeFile("../artifacts/ics721_base_tester.wasm")
Expand Down
2 changes: 1 addition & 1 deletion e2e/full_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func StoreICS721Bridge(t *testing.T, creator sdk.AccAddress, ctx sdk.Context, ap
}

func StoreCw721Base(t *testing.T, creator sdk.AccAddress, ctx sdk.Context, app *app.App) uint64 {
return storeWasmFile(t, "../external-wasms/cw721_base_v0.18.0.wasm", creator, ctx, app)
return storeWasmFile(t, "../external-wasms/cw721_base_v0.19.0.wasm", creator, ctx, app)
}

func TestLoadChain(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func (suite *TransferTestSuite) SetupTest() {
require.Equal(suite.T(), uint64(1), chainBStoreResp.CodeID)

// Store the cw721 contract.
chainAStoreResp = suite.chainA.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
chainAStoreResp = suite.chainA.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")
require.Equal(suite.T(), uint64(2), chainAStoreResp.CodeID)
chainBStoreResp = suite.chainB.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
chainBStoreResp = suite.chainB.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")
require.Equal(suite.T(), uint64(2), chainBStoreResp.CodeID)

instantiateICS721 := InstantiateICS721Bridge{
Expand Down Expand Up @@ -263,7 +263,7 @@ func TestIBC(t *testing.T) {
func instantiateBridge(t *testing.T, chain *wasmibctesting.TestChain) sdk.AccAddress {
// Store the contracts.
bridgeresp := chain.StoreCodeFile("../artifacts/ics721_base.wasm")
cw721resp := chain.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
cw721resp := chain.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")

// Instantiate the ICS721 contract.
instantiateICS721 := InstantiateICS721Bridge{
Expand All @@ -278,7 +278,7 @@ func instantiateBridge(t *testing.T, chain *wasmibctesting.TestChain) sdk.AccAdd
}

func instantiateCw721(t *testing.T, chain *wasmibctesting.TestChain) sdk.AccAddress {
cw721resp := chain.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
cw721resp := chain.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")
cw721Instantiate := InstantiateCw721{
"bad/kids",
"bad/kids",
Expand Down Expand Up @@ -612,9 +612,9 @@ func TestCloseRejected(t *testing.T) {
require.Equal(t, uint64(1), chainBStoreResp.CodeID)

// Store the cw721 contract.
chainAStoreResp = chainA.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
chainAStoreResp = chainA.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")
require.Equal(t, uint64(2), chainAStoreResp.CodeID)
chainBStoreResp = chainB.StoreCodeFile("../external-wasms/cw721_base_v0.18.0.wasm")
chainBStoreResp = chainB.StoreCodeFile("../external-wasms/cw721_base_v0.19.0.wasm")
require.Equal(t, uint64(2), chainBStoreResp.CodeID)

// Store the cw721_base contract.
Expand Down

0 comments on commit e98f6e7

Please sign in to comment.