Skip to content

Remove IntKeyOld #775

@maurolacy

Description

@maurolacy

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions