Compare commits

..

9 Commits

Author SHA1 Message Date
Omar Abdulla b6f1f6e6af Ignore the tx mine test 2025-11-01 08:21:39 +03:00
Omar Abdulla 6e8187b135 Update the commit hash of the polkadot sdk 2025-11-01 07:56:59 +03:00
Omar Abdulla 310925de07 Update tests 2025-11-01 07:53:22 +03:00
Omar Abdulla bb98c96c9d fix machete 2025-11-01 07:15:26 +03:00
Omar Abdulla 1d481b314c Update the CI 2025-11-01 06:53:19 +03:00
Omar Abdulla 36ef669341 Add the step path to the failure logs 2025-11-01 06:45:29 +03:00
Omar Abdulla e7ebd0c034 Update references to the substrate node 2025-11-01 05:26:26 +03:00
Omar Abdulla ad20b99e0a Update the ci for the revive-dev-node 2025-11-01 05:22:36 +03:00
Omar Abdulla 234e59bbea Remove references to kitchensink 2025-11-01 04:57:33 +03:00
8 changed files with 10 additions and 43 deletions
+1 -5
View File
@@ -16,7 +16,6 @@ use alloy::{
primitives::{B256, FixedBytes, U256},
signers::local::PrivateKeySigner,
};
use anyhow::Context as _;
use clap::{Parser, ValueEnum, ValueHint};
use revive_dt_common::types::{ParsedTestSpecifier, PlatformIdentifier};
use semver::Version;
@@ -1080,10 +1079,7 @@ impl FromStr for WorkingDirectoryConfiguration {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"" => Ok(Default::default()),
_ => PathBuf::from(s)
.canonicalize()
.context("Failed to canonicalize the working directory path")
.map(Self::Path),
_ => Ok(Self::Path(PathBuf::from(s))),
}
}
}
+1 -4
View File
@@ -598,10 +598,7 @@ where
let expected = !assertion.exception;
let actual = receipt.status();
if actual != expected {
let revert_reason = tracing_result
.revert_reason
.as_ref()
.or(tracing_result.error.as_ref());
let revert_reason = tracing_result.revert_reason.as_ref();
tracing::error!(
expected,
actual,
+2 -14
View File
@@ -234,15 +234,9 @@ impl Platform for ReviveDevNodePolkavmResolcPlatform {
.path
.as_path();
let wallet = AsRef::<WalletConfiguration>::as_ref(&context).wallet();
let working_directory = AsRef::<WorkingDirectoryConfiguration>::as_ref(&context).as_path();
let export_chainspec_command = SubstrateNode::REVIVE_DEV_NODE_EXPORT_CHAINSPEC_COMMAND;
SubstrateNode::node_genesis(
revive_dev_node_path,
export_chainspec_command,
&wallet,
working_directory,
)
SubstrateNode::node_genesis(revive_dev_node_path, export_chainspec_command, &wallet)
}
}
@@ -308,15 +302,9 @@ impl Platform for ReviveDevNodeRevmSolcPlatform {
.path
.as_path();
let wallet = AsRef::<WalletConfiguration>::as_ref(&context).wallet();
let working_directory = AsRef::<WorkingDirectoryConfiguration>::as_ref(&context).as_path();
let export_chainspec_command = SubstrateNode::REVIVE_DEV_NODE_EXPORT_CHAINSPEC_COMMAND;
SubstrateNode::node_genesis(
revive_dev_node_path,
export_chainspec_command,
&wallet,
working_directory,
)
SubstrateNode::node_genesis(revive_dev_node_path, export_chainspec_command, &wallet)
}
}
+3 -11
View File
@@ -1,6 +1,5 @@
use std::{collections::HashMap, fmt::Display, str::FromStr};
use alloy::hex::ToHexExt;
use alloy::primitives::{FixedBytes, utils::parse_units};
use alloy::{
eips::BlockNumberOrTag,
@@ -687,8 +686,8 @@ impl Calldata {
Calldata::Compound(items) => {
stream::iter(items.iter().zip(other.chunks(32)))
.map(|(this, other)| async move {
// The MatterLabs format supports wildcards and therefore we also need to
// support them.
// The matterlabs format supports wildcards and therefore we
// also need to support them.
if this.as_ref() == "*" {
return Ok::<_, anyhow::Error>(true);
}
@@ -769,14 +768,7 @@ impl CalldataItem {
match stack.as_slice() {
// Empty stack means that we got an empty compound calldata which we resolve to zero.
[] => Ok(U256::ZERO),
[CalldataToken::Item(item)] => {
tracing::debug!(
original_item = ?self,
resolved_item = item.to_be_bytes::<32>().encode_hex(),
"Resolution Done"
);
Ok(*item)
}
[CalldataToken::Item(item)] => Ok(*item),
_ => Err(anyhow::anyhow!(
"Invalid calldata arithmetic operation - Invalid stack"
)),
@@ -160,7 +160,6 @@ impl SubstrateNode {
&self.node_binary,
&self.export_chainspec_command,
&self.wallet,
self.base_directory.as_path(),
)
.context("Failed to prepare the chainspec command")?;
@@ -320,7 +319,6 @@ impl SubstrateNode {
node_path: &Path,
export_chainspec_command: &str,
wallet: &EthereumWallet,
base_directory: impl AsRef<Path>,
) -> anyhow::Result<serde_json::Value> {
trace!("Exporting the chainspec");
let output = Command::new(node_path)
@@ -328,7 +326,6 @@ impl SubstrateNode {
.arg("--chain")
.arg("dev")
.env_remove("RUST_LOG")
.current_dir(base_directory)
.output()
.context("Failed to export the chain-spec")?;
@@ -62,10 +62,7 @@ where
) -> TransportResult<Self::Fillable> {
match self.inner.prepare(provider, tx).await {
Ok(fill) => Ok(Some(fill)),
Err(err) => {
tracing::debug!(error = ?err, "Gas Provider Estimation Failed, using fallback");
Ok(None)
}
Err(_) => Ok(None),
}
}