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

feat: Paymaster support in Forge create #609

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

Jrigada
Copy link
Contributor

@Jrigada Jrigada commented Oct 14, 2024

Motivation

Forge create didn't support the use of paymaster parameters to be able to use this zksync specific feature to deploy a contract.

Solution

Introduce the ability to pass the paymaster address and input data in Forge create command

zkforge create ./src/Counter.sol:Counter --rpc-url "https://sepolia.era.zksync.dev/" --private-key {PK} --zksync --zk-paymaster-address 0x3cB2b87D10Ac01736A65688F3e0Fb1b070B3eeA3 --zk-paymaster-input $(zkcast calldata "approvalBased(address,uint256,bytes)" 0x31c43ac5e6A0fe62954B9056441b0A214722516e 1000000000000000000 "0x")
https://sepolia.explorer.zksync.io/tx/0xe57788a909df8bb4aae2265558ece52acd082328a46568d0d627db264d1ba039

@Jrigada Jrigada marked this pull request as ready for review October 14, 2024 18:45
@Jrigada Jrigada merged commit 902f992 into main Oct 15, 2024
12 checks passed
@Jrigada Jrigada deleted the jrigada-paymaster-in-forge-create branch October 15, 2024 18:44
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.

2 participants