Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🏷️version

Struct InterfaceVersion

Identifies the interface revision implemented or expected by the surrounding stored state.

public struct InterfaceVersion has copy, drop, store
Fields

inner: u64

Constants

#[error]
const EInterfaceVersionMismatch: vector<u8> = b"Interface version mismatch";

Function v

Wraps a raw version number into an InterfaceVersion.

Function number

Returns the raw version number.

Function expect_v

Asserts that this interface version equals the expected number.

Aborts with EInterfaceVersionMismatch if the version does not match.

Last updated