Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
abba0ce
Introduce a custom kitchensink network
0xOmarA Jul 11, 2025
f6374ad
fix formatting
0xOmarA Jul 11, 2025
4bab457
Added `--dev` to `substrate-node` arguments.
0xOmarA Jul 11, 2025
7664e97
fix clippy warning
0xOmarA Jul 11, 2025
76c85f1
fix clippy warning
0xOmarA Jul 11, 2025
e3723e7
Fix function selector and argument encoding
0xOmarA Jul 13, 2025
2373872
Avoid extra buffer allocation
0xOmarA Jul 13, 2025
eb6c64c
Merge remote-tracking branch 'origin/main' into bugfix/kitchensink-ga…
0xOmarA Jul 14, 2025
3320127
Merge pull request #35 from paritytech/bugfix/fix-kitchensink-no-advance
0xOmarA Jul 14, 2025
43e0d0e
Remove reliance on the web3 crate
0xOmarA Jul 14, 2025
57bb015
Merge remote-tracking branch 'origin/main' into bugfix/kitchensink-ga…
0xOmarA Jul 14, 2025
075c823
Merge remote-tracking branch 'origin/main' into bugfix/argument-encoding
0xOmarA Jul 14, 2025
3317051
Update the async runtime with syntactic sugar.
0xOmarA Jul 14, 2025
83c20b1
Fix tests
0xOmarA Jul 14, 2025
27a0a0d
Fix doc test
0xOmarA Jul 14, 2025
e7e00a5
Merge branch 'bugfix/argument-encoding' into feature/better-input-parser
0xOmarA Jul 14, 2025
7d48d16
Give nodes a standard way to get their alloy provider
0xOmarA Jul 14, 2025
a4f5c4c
Add ability to get the chain_id from node
0xOmarA Jul 14, 2025
c6d6325
Merge remote-tracking branch 'origin/bugfix/kitchensink-gas-limit' in…
0xOmarA Jul 14, 2025
8f80b1d
Get kitchensink provider to use kitchensink network
0xOmarA Jul 14, 2025
fa4bbbb
Use provider method in tests
0xOmarA Jul 14, 2025
6154074
Add support for getting the gas limit from the node
0xOmarA Jul 14, 2025
02547b6
Add a way to get the coinbase address
0xOmarA Jul 14, 2025
ddd775d
Add a way to get the block difficulty from the node
0xOmarA Jul 14, 2025
68bda92
Add a way to get block info from the node
0xOmarA Jul 14, 2025
6d7cd67
Expose APIs for getting the info of a specific block
0xOmarA Jul 14, 2025
20da997
Add resolution logic for other matterlabs variables
0xOmarA Jul 14, 2025
2537a13
Fix tests
0xOmarA Jul 15, 2025
fa4bf95
Add comment on alternative solutions
0xOmarA Jul 15, 2025
5c64de7
Change kitchensink gas limit assertion
0xOmarA Jul 15, 2025
cac2220
Merge remote-tracking branch 'origin/main' into feature/better-input-…
0xOmarA Jul 16, 2025
e1c0294
Merge remote-tracking branch 'origin/main' into feature/better-input-…
0xOmarA Jul 18, 2025
0d8caca
Remove un-needed profile config
0xOmarA Jul 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

38 changes: 22 additions & 16 deletions crates/core/src/driver/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! The test driver handles the compilation and execution of the test cases.

use alloy::json_abi::JsonAbi;
use alloy::network::TransactionBuilder;
use alloy::network::{Ethereum, TransactionBuilder};
use alloy::rpc::types::TransactionReceipt;
use alloy::rpc::types::trace::geth::GethTrace;
use alloy::{
Expand Down Expand Up @@ -134,17 +134,21 @@ where
std::any::type_name::<T>()
);

let tx =
match input.legacy_transaction(nonce, &self.deployed_contracts, &self.deployed_abis) {
Ok(tx) => {
tracing::debug!("Legacy transaction data: {tx:#?}");
tx
}
Err(err) => {
tracing::error!("Failed to construct legacy transaction: {err:?}");
return Err(err);
}
};
let tx = match input.legacy_transaction(
nonce,
&self.deployed_contracts,
&self.deployed_abis,
node,
) {
Ok(tx) => {
tracing::debug!("Legacy transaction data: {tx:#?}");
tx
}
Err(err) => {
tracing::error!("Failed to construct legacy transaction: {err:?}");
return Err(err);
}
};

tracing::trace!("Executing transaction for input: {input:?}");

Expand Down Expand Up @@ -253,10 +257,12 @@ where
return Err(error.into());
}
};
let tx = TransactionRequest::default()
.nonce(nonce)
.from(input.caller)
.with_deploy_code(code);
let tx = {
let tx = TransactionRequest::default()
.nonce(nonce)
.from(input.caller);
TransactionBuilder::<Ethereum>::with_deploy_code(tx, code)
};

let receipt = match node.execute_transaction(tx) {
Ok(receipt) => receipt,
Expand Down
2 changes: 2 additions & 0 deletions crates/format/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ repository.workspace = true
rust-version.workspace = true

[dependencies]
revive-dt-node-interaction = { workspace = true }

alloy = { workspace = true }
alloy-primitives = { workspace = true }
alloy-sol-types = { workspace = true }
Expand Down
Loading
Loading