[][src]Function cosmwasm_storage::nextval

pub fn nextval(seq: &mut Singleton<'_, u64>) -> StdResult<u64>

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.