Merge branch 'main' of https://github.com/wasm3/wasm3 into main

extensions
Steven Massey 3 years ago
commit 7b44ac1213

@ -17,7 +17,7 @@ rt = env.new_runtime(4096)
with open(wasm_fn, "rb") as f:
mod = env.parse_module(f.read())
rt.load(mod)
mod.link_function("env", "clock_ms", "i()", clock_ms)
mod.link_function("env", "clock_ms", "I()", clock_ms)
wasm_run = rt.find_function("run")

@ -17,10 +17,10 @@ rt = env.new_runtime(4096)
with open(wasm_fn, "rb") as f:
mod = env.parse_module(f.read())
rt.load(mod)
mod.link_function("env", "clock_ms", "i()", clock_ms)
mod.link_function("env", "clock_ms", "I()", clock_ms)
# Gas metering will only apply to metered (pre-instrumented) modules
mod.gasLimit = 200_000_000
mod.gasLimit = 500_000_000
wasm_run = rt.find_function("run")

Loading…
Cancel
Save