Skip to main content

diff_wasm

Function diff_wasm 

Source
pub fn diff_wasm(old_raw: &[u8], new_raw: &[u8]) -> Result<SpecDiff, WasmError>
Expand description

Diff two raw WASM binaries (offline).

Each side is parsed independently; if either fails to yield a ContractSpec, the error is returned. Missing entries are treated as empty lists, so a contract with no events still diffs cleanly against one that declares events.