Skip to content

Commit

Permalink
fixup! fix(executor): fix inner call execution resources
Browse files Browse the repository at this point in the history
  • Loading branch information
kkovaacs committed Jan 15, 2025
1 parent 6c2509c commit 9ea8eb6
Showing 1 changed file with 28 additions and 35 deletions.
63 changes: 28 additions & 35 deletions crates/rpc/src/method/simulate_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -935,11 +935,10 @@ pub(crate) mod tests {
messages: vec![],
result: vec![felt!("0x1")],
computation_resources: declare_fee_transfer_computation_resources(),
execution_resources:
pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 4,
l2_gas: 0,
},
execution_resources: pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 4,
l2_gas: 0,
},
}
}

Expand All @@ -959,11 +958,10 @@ pub(crate) mod tests {
messages: vec![],
result: vec![],
computation_resources: declare_validate_computation_resources(),
execution_resources:
pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 1,
l2_gas: 0,
},
execution_resources: pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 1,
l2_gas: 0,
},
}
}

Expand Down Expand Up @@ -1240,11 +1238,10 @@ pub(crate) mod tests {
messages: vec![],
result: vec![],
computation_resources: universal_deployer_validate_computation_resources(),
execution_resources:
pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 1,
l2_gas: 0,
},
execution_resources: pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 1,
l2_gas: 0,
},
}
}

Expand Down Expand Up @@ -1383,11 +1380,10 @@ pub(crate) mod tests {
messages: vec![],
result: vec![felt!("0x1")],
computation_resources: universal_deployer_fee_transfer_computation_resources(),
execution_resources:
pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 4,
l2_gas: 0,
},
execution_resources: pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 4,
l2_gas: 0,
},
}
}

Expand Down Expand Up @@ -1637,11 +1633,10 @@ pub(crate) mod tests {
],
messages: vec![],
result: vec![],
execution_resources:
pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 1,
l2_gas: 0,
},
execution_resources: pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 1,
l2_gas: 0,
},
computation_resources: invoke_validate_computation_resources(),
}
}
Expand Down Expand Up @@ -1690,11 +1685,10 @@ pub(crate) mod tests {
messages: vec![],
result: vec![test_storage_value.0],
computation_resources: invoke_execute_computation_resources(),
execution_resources:
pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 3,
l2_gas: 0,
},
execution_resources: pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 3,
l2_gas: 0,
},
}
}

Expand Down Expand Up @@ -1730,11 +1724,10 @@ pub(crate) mod tests {
messages: vec![],
result: vec![felt!("0x1")],
computation_resources: invoke_fee_transfer_computation_resources(),
execution_resources:
pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 4,
l2_gas: 0,
},
execution_resources: pathfinder_executor::types::InnerCallExecutionResources {
l1_gas: 4,
l2_gas: 0,
},
}
}

Expand Down

0 comments on commit 9ea8eb6

Please sign in to comment.