-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: merge main
into upstream-fef2098
#768
Conversation
* remove zksync-web3-rs * simplify estimate_fee calls
fix: insert transaction type into EIP-712 transactions
deps: update foundry-compilers
* Add cargo nextest to zk tests * Enable nextest on foundry upstream test suite * remove foundry test added by mistake
Fix display name of zksync verifier
* Add test for constructor * Create bank contract to reuse and remove extra event * Forge fmt
* Add missing injection and clear it afterwards * Update crates/cheatcodes/src/inspector.rs Co-authored-by: Federico RodrΓguez <[email protected]> * Update crates/cheatcodes/src/inspector.rs Co-authored-by: Federico RodrΓguez <[email protected]> * Update crates/cheatcodes/src/inspector.rs Co-authored-by: Federico RodrΓguez <[email protected]> * clarify clear message * Cargo fmt --------- Co-authored-by: Federico RodrΓguez <[email protected]>
* Encode correctly paymaster input * add test for create with paymaster * Update crates/forge/tests/it/zk/paymaster.rs Co-authored-by: Karrq <[email protected]> --------- Co-authored-by: Karrq <[email protected]>
fix: use dedicated gas limit for each tx in inspect_batch
Add tx type to zk tx in cast send
* chore: update `Vm.sol` interface * chore: restore `EvmVersion::Paris` as default * Add fix for nonce update in evm context and initialization of crypto provider for tests * Add rustls dependency * Fix Cargo lock * Enable foundry tests * Add missing rustls * Remove windows from matrices * Remove extra initialization * Clippy and update vm.sol * Update crates/cast/bin/main.rs Co-authored-by: Nisheeth Barthwal <[email protected]> * Update crates/forge/tests/it/test_helpers.rs Co-authored-by: Nisheeth Barthwal <[email protected]> * Cargo fmt * Update .github/scripts/matrices.py Co-authored-by: Federico RodrΓguez <[email protected]> --------- Co-authored-by: Francesco Dainese <[email protected]> Co-authored-by: Nisheeth Barthwal <[email protected]> Co-authored-by: Federico RodrΓguez <[email protected]>
fix(cast:send): use ETH wallet for eth provider
|
||
tx::validate_from_address(eth.wallet.from, from)?; | ||
|
||
// Zksync transaction | ||
let (tx, _) = builder.build(&zk_signer).await?; | ||
let (tx, _) = builder.build(&signer).await?; | ||
let signer = Arc::new(signer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we Arc
the signer so we can pass it to both wallets without instantiating it twice (for ledger)
let provider = ProviderBuilder::<_, _, AnyNetwork>::default() | ||
.wallet(zk_wallet) | ||
.wallet(wallet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nbaztec said this wasn't meant to be this way, hence why I was getting type issues
@@ -935,7 +936,7 @@ where | |||
/// and the corresponding [`AnyReceipt`]. | |||
pub async fn send_with_receipt( | |||
self, | |||
) -> Result<(Address, AnyTransactionReceipt), ContractDeploymentError> { | |||
) -> Result<(Address, <Zksync as Network>::ReceiptResponse), ContractDeploymentError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to make use of the associated type since we don't really care what it would be otherwise...
This way any changes from alloy-zksync
will be reflected here
What π»
main
branch into outdatedupstream-fef2098
Why β
upstream-fef2098
makes use of alloy 0.6.0Evidence π·
Include screenshots, screen recordings, or
console
output here demonstrating that your changes work as intendedNotes π
The real changes are in commit
fc19cbb