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

Support constructor arguments for Defender deployments #16

Merged
merged 6 commits into from
Feb 6, 2024

Conversation

ericglau
Copy link
Member

@ericglau ericglau commented Jan 26, 2024

Adds a function Defender.deployContract(string memory contractName, bytes memory constructorData) that supports encoded constructor arguments to include for contract deployment.

Breaking changes

Defender.deployContract now returns an address instead of a string to be more consistent with functions from Upgrades.

Dependencies

Requires OpenZeppelin/defender-deploy-client-cli#1 which is available in @openzeppelin/defender-deploy-client-cli version 0.0.1-alpha.2

@ericglau ericglau marked this pull request as ready for review February 1, 2024 14:24
src/Defender.sol Show resolved Hide resolved
@ericglau ericglau merged commit a668bda into OpenZeppelin:main Feb 6, 2024
3 checks passed
@ericglau ericglau deleted the constructorBytecode branch February 6, 2024 20: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