Skip to content

Commit

Permalink
chore: replace test tally wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
hacheigriega committed Jul 18, 2024
1 parent 528509f commit 695aea3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions x/wasm-storage/keeper/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestTallyVM(t *testing.T) {

for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
result := tallyvm.ExecuteTallyVm(testdata.SampleTallyDebugWasm(), tc.args, map[string]string{
result := tallyvm.ExecuteTallyVm(testdata.SampleTallyWasm(), tc.args, map[string]string{
"VM_MODE": "tally",
"CONSENSUS": "true",
})
Expand Down Expand Up @@ -93,7 +93,7 @@ func TestExecuteTally(t *testing.T) {
f.mockViewKeeper.EXPECT().QuerySmart(gomock.Any(), gomock.Any(), gomock.Any()).Return(tt.resp, nil)

// Store the tally wasms.
tallyWasm := types.NewWasm(testdata.SampleTallyDebugWasm(), types.WasmTypeDataRequest, ctx.BlockTime(), ctx.BlockHeight(), 100)
tallyWasm := types.NewWasm(testdata.SampleTallyWasm(), types.WasmTypeDataRequest, ctx.BlockTime(), ctx.BlockHeight(), 100)
err := f.wasmStorageKeeper.DataRequestWasm.Set(ctx, tallyWasm.Hash, tallyWasm)
require.NoError(t, err)

Expand Down
8 changes: 0 additions & 8 deletions x/wasm-storage/keeper/testdata/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ var (

//go:embed sample_tally.wasm
sampleTallyWasm []byte

//go:embed sample_tally_debug.wasm
sampleTallyDebugWasm []byte
)

func SedaContractWasm() []byte {
Expand All @@ -24,8 +21,3 @@ func SedaContractWasm() []byte {
func SampleTallyWasm() []byte {
return sampleTallyWasm
}

// f49da63e87b982fe8b45eb52c8805ccb9e64cf807989c11ea39b156924d3ac57
func SampleTallyDebugWasm() []byte {
return sampleTallyDebugWasm
}
Binary file modified x/wasm-storage/keeper/testdata/sample_tally.wasm
Binary file not shown.
Binary file not shown.

0 comments on commit 695aea3

Please sign in to comment.