Skip to content

Commit

Permalink
Defender: Fix error in proposeUpgrade when project path has a space (
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau authored Aug 26, 2024
1 parent a970344 commit dd9e5dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.3 (2024-08-26)

- Defender: Fix error in `proposeUpgrade` when project path has a space. ([#71](https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades/pull/71))

## 0.3.2 (2024-08-14)

- Fix simulation failure due to revert when upgrading deployments using OpenZeppelin Contracts v4. ([#65](https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades/pull/65))
Expand Down
2 changes: 1 addition & 1 deletion src/internal/DefenderDeploy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ library DefenderDeploy {
inputBuilder[i++] = "--chainId";
inputBuilder[i++] = Strings.toString(block.chainid);
inputBuilder[i++] = "--contractArtifactFile";
inputBuilder[i++] = contractInfo.artifactPath;
inputBuilder[i++] = string(abi.encodePacked('"', contractInfo.artifactPath, '"'));
if (proxyAdminAddress != address(0)) {
inputBuilder[i++] = "--proxyAdminAddress";
inputBuilder[i++] = vm.toString(proxyAdminAddress);
Expand Down
5 changes: 3 additions & 2 deletions test/internal/DefenderDeploy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,9 @@ contract DefenderDeployTest is Test {
string.concat(
"npx @openzeppelin/defender-deploy-client-cli@",
Versions.DEFENDER_DEPLOY_CLIENT_CLI,
" proposeUpgrade --proxyAddress 0x1230000000000000000000000000000000000456 --newImplementationAddress 0x1110000000000000000000000000000000000222 --chainId 31337 --contractArtifactFile ",
contractInfo.artifactPath
' proposeUpgrade --proxyAddress 0x1230000000000000000000000000000000000456 --newImplementationAddress 0x1110000000000000000000000000000000000222 --chainId 31337 --contractArtifactFile "',
contractInfo.artifactPath,
'"'
)
);
}
Expand Down

0 comments on commit dd9e5dd

Please sign in to comment.