Function cosmwasm_storage::nextval

source ·
pub fn nextval(seq: &mut 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

nextval increments the counter by 1 and returns the new value. On the first time it is called (no sequence info in db) it will return 1.