Skip to main content

CONTRACT_VERSION

Constant CONTRACT_VERSION 

Source
pub const CONTRACT_VERSION: u64 = 1;
Expand description

The version of the contract: which tokens exist, under which names.

A number of its own, not a crate version: it starts at 1 and goes up by one when a release renames or removes a token of the contract (an added token does not raise it, since an older file still loads). A token file says which contract it was written for in its format stamp (crate::FormatStamp); a rename comes with an entry in RENAMED, so files written for an older contract still load.