Skip to content

Commit

Permalink
chore: add chain name to initalizeV2 in script
Browse files Browse the repository at this point in the history
  • Loading branch information
excaliborr committed Aug 21, 2024
1 parent c17ee98 commit 9518cd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ After all these variables are set, navigate to the `script/mainnet/Deploy.s.sol`
// NOTE: We have these hardcoded to default values, if used in product you will need to change them
bytes[] memory _usdcInitTxs = new bytes[](3);
string memory _name = string.concat('Bridged USDC, ' ', '(', chainName, ')');
_usdcInitTxs[0] = USDCInitTxs.INITIALIZEV2;
_usdcInitTxs[0] = abi.encodeCall(IUSDC.initializeV2, (_name));
_usdcInitTxs[1] = USDCInitTxs.INITIALIZEV2_1;
_usdcInitTxs[2] = USDCInitTxs.INITIALIZEV2_2;
Expand Down
4 changes: 3 additions & 1 deletion script/mainnet/deploy/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity 0.8.25;
import {Script} from 'forge-std/Script.sol';
import {console} from 'forge-std/Test.sol';
import {IL1OpUSDCFactory} from 'interfaces/IL1OpUSDCFactory.sol';
import {IUSDC} from 'interfaces/external/IUSDC.sol';
import {USDCInitTxs} from 'src/contracts/utils/USDCInitTxs.sol';

contract Deploy is Script {
Expand All @@ -21,8 +22,9 @@ contract Deploy is Script {
// NOTE: We have these hardcoded to default values, if used in product you will need to change them

bytes[] memory _usdcInitTxs = new bytes[](3);
string memory _name = string.concat('Bridged ', ' ', '(', chainName, ')');

_usdcInitTxs[0] = USDCInitTxs.INITIALIZEV2;
_usdcInitTxs[0] = abi.encodeCall(IUSDC.initializeV2, (_name));
_usdcInitTxs[1] = USDCInitTxs.INITIALIZEV2_1;
_usdcInitTxs[2] = USDCInitTxs.INITIALIZEV2_2;

Expand Down

0 comments on commit 9518cd9

Please sign in to comment.