From 6a418e598eb9cc26bc46f8d5a2391c74dbca627d Mon Sep 17 00:00:00 2001 From: Arseniy Lyashenko Date: Sat, 23 Sep 2023 01:40:08 +0300 Subject: [PATCH] Fix gasfull costs are forgotten --- core-backend/src/funcs.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core-backend/src/funcs.rs b/core-backend/src/funcs.rs index 2c9bcd983c5..a8941a747b8 100644 --- a/core-backend/src/funcs.rs +++ b/core-backend/src/funcs.rs @@ -374,7 +374,7 @@ where delay: u32, ) -> impl SysCall { ( - RuntimeCosts::Send(len), + RuntimeCosts::SendWGas(len), FallibleSysCallError::::default(), move |ctx: &mut CallerWrap| { Self::send_inner(ctx, pid_value_ptr, payload_ptr, len, Some(gas_limit), delay) @@ -426,7 +426,7 @@ where delay: u32, ) -> impl SysCall { ( - RuntimeCosts::SendCommit, + RuntimeCosts::SendCommitWGas, FallibleSysCallError::::default(), move |ctx: &mut CallerWrap| { Self::send_commit_inner(ctx, handle, pid_value_ptr, Some(gas_limit), delay) @@ -703,7 +703,7 @@ where value_ptr: u32, ) -> impl SysCall { ( - RuntimeCosts::Reply(len), + RuntimeCosts::ReplyWGas(len), FallibleSysCallError::::default(), move |ctx: &mut CallerWrap| { Self::reply_inner(ctx, payload_ptr, len, Some(gas_limit), value_ptr) @@ -737,7 +737,7 @@ where pub fn reply_commit_wgas(gas_limit: u64, value_ptr: u32) -> impl SysCall { ( - RuntimeCosts::ReplyCommit, + RuntimeCosts::ReplyCommitWGas, FallibleSysCallError::::default(), move |ctx: &mut CallerWrap| { Self::reply_commit_inner(ctx, Some(gas_limit), value_ptr) @@ -854,7 +854,7 @@ where value_ptr: u32, ) -> impl SysCall { ( - RuntimeCosts::ReplyInput, + RuntimeCosts::ReplyInputWGas, FallibleSysCallError::::default(), move |ctx: &mut CallerWrap| { Self::reply_input_inner(ctx, offset, len, Some(gas_limit), value_ptr)