Skip to content

v0.11.0: L6 minimal cross-call executor

Choose a tag to compare

@Jim8y Jim8y released this 27 Jun 23:54
· 61 commits to master since this release

v0.11.0 — L6 minimal cross-call executor

The v0.8.0 B4 fix made the wasm32 cross-call panic-loud rather
than silently returning NeoValue::Null. v0.11.0 takes the next
step: the panic sites now return a structured
Result<_, ContractCallError>. Cross-call still does not execute
on wasm32 (a real NeoVM in wasm32 form is months of work), but
the failure mode is type-safe.

Highlights

  • L6 minimal — Three wasm32 syscall sites
    (System.Runtime.LoadScript, System.Contract.Call,
    System.Contract.CallNative) now return
    Err(NeoError::Wasm32CrossCallUnavailable { syscall }) instead
    of panic!. New ContractCallError::Wasm32CrossCallUnavailable { syscall } variant; new NeoError::Wasm32CrossCallUnavailable { syscall } variant; From<NeoError> for ContractCallError
    converts the underlying NeoError to the typed variant.
    The two iterator panic sites (iterator_next, iterator_value)
    are unchanged — they are translator-bug detectors (Q4), not
    cross-call failures, and must remain panic.
  • 5 new tests in rust-devpack/tests/l6_cross_call.rs.

Test status

  • 65 workspace test suites (was 64 at v0.10.0)
  • 0 clippy errors, 0 failures
  • 4 L7 conformance tests pass

See CHANGELOG.md for full details.