From 80375744be4732cf834fb5c9b9dd77fc275271d4 Mon Sep 17 00:00:00 2001 From: lempire123 <61431140+lempire123@users.noreply.github.com> Date: Tue, 28 Mar 2023 12:25:51 +0200 Subject: [PATCH] Fix: Missing Gas Costs in exitToNear and exitToEthereum Precompiles (#687) * Update native.rs * Remove spaces * chore: make clippy happy --------- Co-authored-by: Oleksandr Anyshchenko Co-authored-by: Ahmed Ali --- engine-precompiles/src/native.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine-precompiles/src/native.rs b/engine-precompiles/src/native.rs index f92facea6..b96cce30b 100644 --- a/engine-precompiles/src/native.rs +++ b/engine-precompiles/src/native.rs @@ -433,7 +433,8 @@ impl Precompile for ExitToNear { Ok(PrecompileOutput { logs: vec![promise_log, exit_event_log], - ..Default::default() + cost: Self::required_gas(input)?, + output: Vec::new(), }) } } @@ -613,7 +614,8 @@ impl Precompile for ExitToEthereum { Ok(PrecompileOutput { logs: vec![promise_log, exit_event_log], - ..Default::default() + cost: Self::required_gas(input)?, + output: Vec::new(), }) } }