Skip to content

Commit

Permalink
fix: removed wrong as_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
alenmestrov committed Dec 1, 2024
1 parent 53324d6 commit 3321e6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions contracts/icp/context-config/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ impl ICContextId {
pub fn new(bytes: [u8; 32]) -> Self {
Self(Identity(bytes))
}

pub fn as_bytes(&self) -> [u8; 32] {
self.0.as_bytes()
}
}

impl ReprBytes for ICContextId {
Expand Down
1 change: 1 addition & 0 deletions contracts/icp/context-config/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use context_contract::types::{
ContextRequest, ContextRequestKind, ICApplication, ICApplicationId, ICBlobId, ICCapability,
ICContextId, ICContextIdentity, ICPSigned, ICSignerId, Request, RequestKind,
};
use calimero_context_config::repr::ReprBytes;
use ed25519_dalek::{Signer, SigningKey};
use pocket_ic::{PocketIc, WasmResult};
use rand::Rng;
Expand Down

0 comments on commit 3321e6a

Please sign in to comment.