Skip to content

Commit

Permalink
test: add requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cucupac committed Oct 24, 2023
1 parent c35532c commit 631c882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/PredictiveDeployer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
pragma solidity ^0.8.21;

import { Test } from "forge-std/Test.sol";
import { VmSafe } from "forge-std/Vm.sol";
import { PredictiveDeployer } from "../src/PredictiveDeployer.sol";
import { ERC1967Proxy } from "../src/dependencies/proxy/ERC1967Proxy.sol";
import { Child } from "./Child.t.sol";
import { VmSafe } from "forge-std/Vm.sol";
import { IPredictiveDeployer } from "../src/interfaces/IPredictiveDeployer.sol";
import { CONTRACT_DEPLOYER } from "./common/constants.t.sol";

Expand Down Expand Up @@ -129,7 +129,7 @@ contract PredictiveDeployerTest is Test {
(uint8 v, bytes32 r, bytes32 s) = vm.sign(wallet.privateKey, messageHash);
bytes memory signature = abi.encodePacked(r, s, v);

// Act: attempt replay
// Act: attempt with invalid principal
vm.expectRevert(PredictiveDeployer.Unauthorized.selector);
IPredictiveDeployer(address(proxy)).deploy(invalidPrincipal, signature, childBytecode);
}
Expand Down
2 changes: 1 addition & 1 deletion test/common/constants.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pragma solidity ^0.8.21;

address constant CONTRACT_DEPLOYER = 0x76bd253e7a0FB5896b4ACA4b9ef06E9ee2b74e8E;

address constant TEST_ERC20_TOKEN = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
address constant TEST_ERC20_TOKEN = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; // USDC on Ethereum

0 comments on commit 631c882

Please sign in to comment.