Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove IntKeyOld #775

Closed
maurolacy opened this issue Aug 9, 2022 · 0 comments · Fixed by #778
Closed

Remove IntKeyOld #775

maurolacy opened this issue Aug 9, 2022 · 0 comments · Fixed by #778
Assignees
Milestone

Comments

@maurolacy
Copy link
Contributor

maurolacy commented Aug 9, 2022

Remove IntKeyOld

pub struct IntKeyOld<T: Endian> {
pub wrapped: Vec<u8>,
pub data: PhantomData<T>,
}

and associated stuff.

And then rename the CwIntKey trait

// TODO: Rename to `IntKey` after deprecating current `IntKey` (https://github.com/CosmWasm/cw-plus/issues/570)
pub trait CwIntKey: Sized + Copy {
type Buf: AsRef<[u8]> + AsMut<[u8]> + Into<Vec<u8>> + Default;
fn to_cw_bytes(&self) -> Self::Buf;
fn from_cw_bytes(bytes: Self::Buf) -> Self;
}

to IntKey for simplicity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants