Skip to content
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

Merged
merged 27 commits into from
Dec 5, 2024

Conversation

Karrq
Copy link
Contributor

@Karrq Karrq commented Dec 4, 2024

What πŸ’»

  • Merge main branch into outdated upstream-fef2098
  • Update alloy-zksync to 0.6.1

Why βœ‹

  • To ensure easy mergeability
  • upstream-fef2098 makes use of alloy 0.6.0

Evidence πŸ“·

Include screenshots, screen recordings, or console output here demonstrating that your changes work as intended

Notes πŸ“

The real changes are in commit fc19cbb

nbaztec and others added 24 commits November 21, 2024 17:01
* 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
* 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
@Karrq Karrq self-assigned this Dec 4, 2024
@Karrq Karrq requested a review from a team as a code owner December 4, 2024 16:17

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);
Copy link
Contributor Author

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)
Copy link
Contributor Author

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> {
Copy link
Contributor Author

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

@Karrq Karrq merged commit 6c1c4ba into upstream-fef2098 Dec 5, 2024
46 checks passed
@Karrq Karrq deleted the upstream-fef2098-main-update branch December 5, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants