From 3321e6add796ee481252a1d43a48ea728a6f2e6d Mon Sep 17 00:00:00 2001 From: alenmestrov Date: Sun, 1 Dec 2024 18:37:31 +0100 Subject: [PATCH] fix: removed wrong as_bytes --- contracts/icp/context-config/src/types.rs | 4 ---- contracts/icp/context-config/tests/integration.rs | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/contracts/icp/context-config/src/types.rs b/contracts/icp/context-config/src/types.rs index da3c2adff..7c60d49a9 100644 --- a/contracts/icp/context-config/src/types.rs +++ b/contracts/icp/context-config/src/types.rs @@ -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 { diff --git a/contracts/icp/context-config/tests/integration.rs b/contracts/icp/context-config/tests/integration.rs index 99bd68262..00fb0d91c 100644 --- a/contracts/icp/context-config/tests/integration.rs +++ b/contracts/icp/context-config/tests/integration.rs @@ -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;