diff --git a/examples/proxy/lib.rs b/examples/proxy/lib.rs index db0b13b54e..be2b0bf6be 100644 --- a/examples/proxy/lib.rs +++ b/examples/proxy/lib.rs @@ -42,7 +42,7 @@ pub mod proxy { impl core::fmt::Display for NotAdminErr { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { - let msg = format!( + let msg = ink_env::format!( "caller does not have sufficient permissions, only {:?} does", self.admin );