[][src]Function cosmwasm_storage::nextval

pub fn nextval<S: Storage>(seq: &mut Singleton<S, 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.