diff --git a/Cargo.lock b/Cargo.lock index 453653c438..dfe2957a58 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2571,7 +2571,7 @@ dependencies = [ [[package]] name = "massa-sc-runtime" version = "0.10.0" -source = "git+https://github.com/massalabs/massa-sc-runtime?rev=4220039f113291003674f574a1a7ae4035506e81#4220039f113291003674f574a1a7ae4035506e81" +source = "git+https://github.com/massalabs/massa-sc-runtime?rev=f5fd64c9e05c6d7cc01a30d1ef1dc0c202456a4b#f5fd64c9e05c6d7cc01a30d1ef1dc0c202456a4b" dependencies = [ "anyhow", "as-ffi-bindings", diff --git a/Cargo.toml b/Cargo.toml index be2dd5cdc0..faecffa028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -108,7 +108,7 @@ massa_wallet = { path = "./massa-wallet" } # Massa projects dependencies massa-proto-rs = { git = "https://github.com/massalabs/massa-proto-rs", "rev" = "1cce8ec75e0df66af6ce3c5a86350adaea8ac463" } -massa-sc-runtime = { git = "https://github.com/massalabs/massa-sc-runtime", "rev" = "4220039f113291003674f574a1a7ae4035506e81" } +massa-sc-runtime = { git = "https://github.com/massalabs/massa-sc-runtime", "rev" = "f5fd64c9e05c6d7cc01a30d1ef1dc0c202456a4b" } peernet = { git = "https://github.com/massalabs/PeerNet", "rev" = "04b05ddd320fbe76cc858115af7b5fc28bdb8310" } diff --git a/massa-execution-worker/src/interface_impl.rs b/massa-execution-worker/src/interface_impl.rs index ce1af0429d..1bb39d2d61 100644 --- a/massa-execution-worker/src/interface_impl.rs +++ b/massa-execution-worker/src/interface_impl.rs @@ -1341,7 +1341,11 @@ impl Interface for InterfaceImpl { /// /// # Returns /// A tuple containing a boolean indicating if the call is possible and the amount of fees needed - fn deferred_call_quote(&self, target_slot: (u64, u8), gas_limit: u64) -> Result<(bool, u64)> { + fn get_deferred_call_quote( + &self, + target_slot: (u64, u8), + gas_limit: u64, + ) -> Result<(bool, u64)> { // write-lock context let context = context_guard!(self); @@ -1398,7 +1402,7 @@ impl Interface for InterfaceImpl { } // check fee, slot, gas - let (available, fee_raw) = self.deferred_call_quote(target_slot, max_gas)?; + let (available, fee_raw) = self.get_deferred_call_quote(target_slot, max_gas)?; if !available { bail!("The Deferred call cannot be registered. Ensure that the target slot is not before/at the current slot nor too far in the future, and that it has at least max_gas available gas."); }