Skip to content

Commit

Permalink
Fix gasfull costs are forgotten
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Sep 22, 2023
1 parent e5cada1 commit 6a418e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core-backend/src/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ where
delay: u32,
) -> impl SysCall<Ext> {
(
RuntimeCosts::Send(len),
RuntimeCosts::SendWGas(len),
FallibleSysCallError::<ErrorWithHash>::default(),
move |ctx: &mut CallerWrap<Ext>| {
Self::send_inner(ctx, pid_value_ptr, payload_ptr, len, Some(gas_limit), delay)
Expand Down Expand Up @@ -426,7 +426,7 @@ where
delay: u32,
) -> impl SysCall<Ext> {
(
RuntimeCosts::SendCommit,
RuntimeCosts::SendCommitWGas,
FallibleSysCallError::<ErrorWithHash>::default(),
move |ctx: &mut CallerWrap<Ext>| {
Self::send_commit_inner(ctx, handle, pid_value_ptr, Some(gas_limit), delay)
Expand Down Expand Up @@ -703,7 +703,7 @@ where
value_ptr: u32,
) -> impl SysCall<Ext> {
(
RuntimeCosts::Reply(len),
RuntimeCosts::ReplyWGas(len),
FallibleSysCallError::<ErrorWithHash>::default(),
move |ctx: &mut CallerWrap<Ext>| {
Self::reply_inner(ctx, payload_ptr, len, Some(gas_limit), value_ptr)
Expand Down Expand Up @@ -737,7 +737,7 @@ where

pub fn reply_commit_wgas(gas_limit: u64, value_ptr: u32) -> impl SysCall<Ext> {
(
RuntimeCosts::ReplyCommit,
RuntimeCosts::ReplyCommitWGas,
FallibleSysCallError::<ErrorWithHash>::default(),
move |ctx: &mut CallerWrap<Ext>| {
Self::reply_commit_inner(ctx, Some(gas_limit), value_ptr)
Expand Down Expand Up @@ -854,7 +854,7 @@ where
value_ptr: u32,
) -> impl SysCall<Ext> {
(
RuntimeCosts::ReplyInput,
RuntimeCosts::ReplyInputWGas,
FallibleSysCallError::<ErrorWithHash>::default(),
move |ctx: &mut CallerWrap<Ext>| {
Self::reply_input_inner(ctx, offset, len, Some(gas_limit), value_ptr)
Expand Down

0 comments on commit 6a418e5

Please sign in to comment.