Skip to main content

Module sui_system::validator_wrapper

Struct ValidatorWrapper

public struct ValidatorWrapper has store
Click to open
Fields

Constants

const EInvalidVersion: u64 = 0;

Function create_v1

Function load_validator_maybe_upgrade

This function should always return the latest supported version.
If the inner version is old, we upgrade it lazily in-place.

Function destroy

Destroy the wrapper and retrieve the inner validator object.

Function upgrade_to_latest

Function version