Override gas limit for tests (#231)

* Add the ability to override the gas limit and other gas params in test steps

* Update the CI to accept resolc URL
This commit is contained in:
Omar
2026-01-27 00:15:29 +03:00
committed by GitHub
parent 97d0cf1d1c
commit 340c2667e1
4 changed files with 77 additions and 18 deletions
+9 -9
View File
@@ -482,15 +482,16 @@ where
.context("Failed to find deployment receipt for constructor call"),
Method::Fallback | Method::FunctionName(_) => {
let resolver = self.platform_information.node.resolver().await?;
let tx = match step
let mut tx = step
.as_transaction(resolver.as_ref(), self.default_resolution_context())
.await
{
Ok(tx) => tx,
Err(err) => {
return Err(err);
}
};
.await?;
let gas_overrides = step
.gas_overrides
.get(&self.platform_information.platform.platform_identifier())
.copied()
.unwrap_or_default();
gas_overrides.apply_to::<Ethereum>(&mut tx);
self.platform_information.node.execute_transaction(tx).await
}
@@ -911,7 +912,6 @@ where
.get(contract_instance)
{
info!(
%address,
"Contract instance already deployed."
);