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

Add a way to override anvil-zksync tag/path #1609

Open
itegulov opened this issue Jan 14, 2025 · 0 comments
Open

Add a way to override anvil-zksync tag/path #1609

itegulov opened this issue Jan 14, 2025 · 0 comments

Comments

@itegulov
Copy link

🌟 Feature Request for hardaht-zksync plugins

💥 Plugin name

hardhat-zksync-node

📝 Description

Provide a way to override anvil-zksync's binary path and tag. Either via a CLI parameter or an env var, no strong opinion here.

🤔 Rationale

Adds flexibility to use a specific version of anvil-zksync as needed (latest might have bugs, drop compatibility with certain feature that a user relies on etc). Additionally, an option to use a locally built binary is great for debugging.

🖼️ Mockups/Examples

Just to give an idea of how this can look like, here is how I patched hardhat-zksync to override anvil-zksync path in my most recent debugging attempt:

let binaryPath: string;
const anvilPath = env.HARDHAT_ANVIL_ZKSYNC_PATH;
if (anvilPath) {
    console.log(`Using custom anvil-zksync binary at '${anvilPath}'`);
    binaryPath = anvilPath;
} else {
    binaryPath = await run(TASK_NODE_ZKSYNC_DOWNLOAD_BINARY, { force: false, tag });
}

📋 Additional Context

Add any other context or information about the feature request here.

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

No branches or pull requests

1 participant