Skip to content

Commit

Permalink
disable the wasmtime VM for now
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Jun 9, 2021
1 parent eefa27c commit 61ec74c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 0 additions & 10 deletions runtime/compiler/codegen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import (

"github.com/onflow/cadence/runtime/compiler/ir"
"github.com/onflow/cadence/runtime/compiler/wasm"
"github.com/onflow/cadence/runtime/interpreter"
"github.com/onflow/cadence/vm"
)

func TestWasmCodeGenSimple(t *testing.T) {
Expand Down Expand Up @@ -197,12 +195,4 @@ func TestWasmCodeGenSimple(t *testing.T) {
require.NoError(t, err)

_ = wasm.WASM2WAT(buf.Bytes())

machine, err := vm.NewVM(buf.Bytes())
require.NoError(t, err)

res, err := machine.Invoke("inc", interpreter.NewIntValueFromInt64(2))
require.NoError(t, err)

require.Equal(t, interpreter.NewIntValueFromInt64(3), res)
}
2 changes: 2 additions & 0 deletions vm/vm.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build wasmtime

/*
* Cadence - The resource-oriented smart contract programming language
*
Expand Down

0 comments on commit 61ec74c

Please sign in to comment.