Function cosmwasm_storage::currval
source · pub fn currval(seq: &Singleton<'_, u64>) -> StdResult<u64>
👎Deprecated: The crate cosmwasm-storage is unmaintained and will be removed in CosmWasm 2.0. Please consider migrating to cw-storage-plus or simple cosmwasm-std storage calls.
Expand description
currval returns the last value returned by nextval. If the sequence has never been used, then it will return 0.