Skip to content

Commit

Permalink
Update runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Oct 2, 2024
1 parent a4e21a3 commit a4f3a6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
8 changes: 6 additions & 2 deletions massa-execution-worker/src/interface_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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.");
}
Expand Down

0 comments on commit a4f3a6d

Please sign in to comment.