diff --git a/core-backend/src/funcs.rs b/core-backend/src/funcs.rs index 8fc5c796cf2..0862d2d06a3 100644 --- a/core-backend/src/funcs.rs +++ b/core-backend/src/funcs.rs @@ -163,11 +163,11 @@ impl From for SysCallReturnValue { } } -pub trait SysCallContext: Sized { +pub(crate) trait SysCallContext: Sized { fn from_args(args: &[Value]) -> Result<(Self, &[Value]), HostError>; } -pub trait SysCall { +pub(crate) trait SysCall { type Context: SysCallContext; fn execute( @@ -177,7 +177,7 @@ pub trait SysCall { ) -> Result<(u64, T), HostError>; } -pub trait SysCallBuilder { +pub(crate) trait SysCallBuilder { fn build(self, args: &[Value]) -> Result; } @@ -1245,7 +1245,14 @@ where ctx.ext_mut() .create_program( - InitPacket::maybe_with_gas(code_id.into(), salt, payload, Some(message_id), gas_limit, value), + InitPacket::maybe_with_gas( + code_id.into(), + salt, + payload, + Some(message_id), + gas_limit, + value, + ), delay, ) .map_err(Into::into)