Skip to main content

apply_uses

Function apply_uses 

Source
fn apply_uses(uses_allowed: JsOption<UInt>, current: Option<u64>) -> Option<u64>
Expand description

Fold the tri-state uses_allowed over the stored cap: an undefined field leaves it unchanged, an explicit null clears it.