Skip to content

Commit

Permalink
Rename generics in execute
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Oct 18, 2023
1 parent 20f53cf commit e870d2d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core-backend/src/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,22 +346,22 @@ where
RunFallibleError: From<Ext::FallibleError>,
Ext::AllocError: BackendAllocSyscallError<ExtError = Ext::UnrecoverableError>,
{
pub fn execute<B, Args, R, S>(
pub fn execute<Builder, Args, Res, Call>(
caller: &mut Caller<HostState<Ext, ExecutorMemory>>,
args: &[Value],
builder: B,
builder: Builder,
) -> Result<WasmReturnValue, HostError>
where
B: SysCallBuilder<Ext, Args, R, S>,
Builder: SysCallBuilder<Ext, Args, Res, Call>,
Args: ?Sized,
S: SysCall<Ext, R>,
R: Into<SysCallReturnValue>,
Call: SysCall<Ext, Res>,
Res: Into<SysCallReturnValue>,
{
crate::log::trace_syscall::<B>(args);
crate::log::trace_syscall::<Builder>(args);

let mut caller = CallerWrap::prepare(caller);

let (ctx, args) = S::Context::from_args(args)?;
let (ctx, args) = Call::Context::from_args(args)?;
let sys_call = builder.build(args)?;
let (gas, value) = sys_call.execute(&mut caller, ctx)?;
let value = value.into();
Expand Down

0 comments on commit e870d2d

Please sign in to comment.