Skip to content

Commit

Permalink
feat: Transmuter premining address
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec committed Jan 5, 2024
1 parent e181831 commit 1fd4ccb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"prettier": "prettier --write '**/*.sol'",
"lint": "yarn lint:check --fix",
"lint:check": "solhint --max-warnings 20 \"**/*.sol\"",
"vanity": "forge script --skip test --slow -vvvv --rpc-url mainnet ./scripts/utils/VanityAddress.s.sol",
"verify:agEUR": "forge verify-contract --chain-id 100 --num-of-optimizations 1000 --watch --constructor-args $(cast abi-encode 'constructor(string memory,string memory,uint8)' 'Mock-AgEUR' 'Mock-AgEUR' 18) --compiler-version v0.8.19+commit.7dd6d40 --etherscan-api-key HQU42G9VWZ6KFNYTYKE6VFB7V48KMJ69HS 0x5fE0E497Ac676d8bA78598FC8016EBC1E6cE14a3 lib/borrow-contracts/contracts/mock/MockTokenPermit:MockTokenPermit.sol",
"verify": "forge verify-contract --watch 0x8E669F6eF8485694196F32d568BA4Ac268b9FE8f Redeemer"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/TransmuterDeploymentHelper.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ contract TransmuterDeploymentHelper is Utils {

address computedAddress = create2Factory.findCreate2Address(salt, initCode);
console.log("Supposed to deploy: %s", address(computedAddress));
// if (computedAddress != 0x002535d40c962646418E26E00Bf810A4b77560C2) revert InvalidVanityAddress();
if (computedAddress != 0x222222924577c40Fc916D87e7A6f0c94Ab4a29CB) revert InvalidVanityAddress();

transmuter = ITransmuter(create2Factory.safeCreate2(salt, initCode));
}
Expand Down
Loading

0 comments on commit 1fd4ccb

Please sign in to comment.