Skip to content

[Dev Tools] hardhat deploy-zksync:contract does not seem to be deterministic across wallets #768

Discussion options

You must be logged in to vote

No need to apologize @coffeexcoin ! Yes, you are correct. On foundry-zksync this works as intended. That is regardless of the deploying wallet a deterministic address is used. Below you can see a forge script that uses the Create2Factory.sol via the syntax sugar of counter = new Counter{salt: salt}();. If you deploy this to abstract and zksync using different deployers it will result in the same address.

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;

import {Script, console} from "forge-std/Script.sol";
import {Counter} from "../src/Counter.sol";

contract CounterScript is Script {
    Counter public counter;

    function setUp() public {}

    function run() public {
 …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@coffeexcoin
Comment options

@dutterbutter
Comment options

@coffeexcoin
Comment options

@dutterbutter
Comment options

Answer selected by MexicanAce
@dutterbutter
Comment options

@dutterbutter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtools Questions related to zkSync Tooling
2 participants