Skip to content

Commit

Permalink
fix(tests): Export unimplemented runtime fuctions (#3461)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Aug 30, 2023
1 parent 3e11bc2 commit 3e4546c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/runtime/wazero/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ func NewInstance(code []byte, cfg Config) (instance *Instance, err error) {
WithFunc(ext_trie_blake2_256_root_version_1).
Export("ext_trie_blake2_256_root_version_1").
NewFunctionBuilder().
WithFunc(func(a int64, v int32) int32 {
panic("ext_trie_blake2_256_root_version_2 unimplemented")
}).
Export("ext_trie_blake2_256_root_version_2").
NewFunctionBuilder().
WithFunc(ext_trie_blake2_256_ordered_root_version_1).
Export("ext_trie_blake2_256_ordered_root_version_1").
NewFunctionBuilder().
Expand All @@ -216,6 +221,11 @@ func NewInstance(code []byte, cfg Config) (instance *Instance, err error) {
WithFunc(ext_trie_blake2_256_verify_proof_version_1).
Export("ext_trie_blake2_256_verify_proof_version_1").
NewFunctionBuilder().
WithFunc(func(a int32, b int64, c int64, d int64, v int32) int32 {
panic("ext_trie_blake2_256_verify_proof_version_2 unimplemented")
}).
Export("ext_trie_blake2_256_verify_proof_version_2").
NewFunctionBuilder().
WithFunc(ext_misc_print_hex_version_1).
Export("ext_misc_print_hex_version_1").
NewFunctionBuilder().
Expand Down

0 comments on commit 3e4546c

Please sign in to comment.