generated from stacks-network/.github
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Once the cost tracking implementation is complete, we should add some tests for it to ensure parity with the interpreter.
Our existing test infrastructure should make adding a comparison between the interpreter and the WebAssembly runtime's accounting of costs not too difficult. By modifying TestEnvironment::init_contract_with_snippet
to use both the interpreter's and the runtime's cost tracking, all the tests that rely on crosscheck
ing the results of executing a contract will now also check the cost tracking code.
clarity-wasm/clar2wasm/src/tools.rs
Lines 156 to 160 in d7e4a3c
pub fn init_contract_with_snippet( | |
&mut self, | |
contract_name: &str, | |
snippet: &str, | |
) -> Result<Option<Value>, Error> { |
Metadata
Metadata
Assignees
Labels
No labels