Function cosmwasm_storage::nextval[][src]

pub fn nextval(seq: &mut Singleton<'_, u64>) -> StdResult<u64>
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.