diff --git a/ic-pocket-canister-runtime/src/lib.rs b/ic-pocket-canister-runtime/src/lib.rs index 2ab28e1..7366157 100644 --- a/ic-pocket-canister-runtime/src/lib.rs +++ b/ic-pocket-canister-runtime/src/lib.rs @@ -140,6 +140,12 @@ impl<'a> PocketIcRuntime<'a> { } } +impl<'a> AsRef for PocketIcRuntime<'a> { + fn as_ref(&self) -> &'a PocketIc { + self.env + } +} + #[async_trait] impl Runtime for PocketIcRuntime<'_> { async fn update_call(