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

[NoStory] Update deploy script for renamed vars and fix readme #3

Merged
merged 1 commit into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ The contracts are deployed using [Forge Scripts](https://book.getfoundry.sh/tuto
- `MESSAGE_TRANSMITTER_RESCUER_ADDRESS`
- `TOKEN_MESSENGER_RESCUER_ADDRESS`
- `TOKEN_MINTER_RESCUER_ADDRESS`
- `TOKEN_CONTROLLER_ADDRESS`
- `DOMAIN`
- `REMOTE_DOMAIN`
- `BURN_LIMIT_PER_MESSAGE`
Expand Down
8 changes: 4 additions & 4 deletions scripts/deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract DeployScript is Script {
uint32 private domain;
uint32 private remoteDomain;
uint32 private maxMessageBodySize = 8192;
uint256 private burnLimitPerTransaction;
uint256 private burnLimitPerMessage;

uint256 private messageTransmitterDeployerPrivateKey;
uint256 private tokenMessengerDeployerPrivateKey;
Expand Down Expand Up @@ -152,7 +152,7 @@ contract DeployScript is Script {

tokenMinter.setMaxBurnAmountPerMessage(
usdcContractAddress,
burnLimitPerTransaction
burnLimitPerMessage
);

tokenMinter.linkTokenPair(
Expand Down Expand Up @@ -201,8 +201,8 @@ contract DeployScript is Script {

attesterAddress = vm.envAddress("ATTESTER_ADDRESS");
usdcContractAddress = vm.envAddress("USDC_CONTRACT_ADDRESS");
tokenControllerAddress = vm.envAddress("TOKEN_CONTROLLER");
burnLimitPerTransaction = vm.envUint("BURN_LIMIT_PER_TRANSACTION");
tokenControllerAddress = vm.envAddress("TOKEN_CONTROLLER_ADDRESS");
burnLimitPerMessage = vm.envUint("BURN_LIMIT_PER_MESSAGE");

usdcRemoteContractAddress = vm.envAddress(
"REMOTE_USDC_CONTRACT_ADDRESS"
Expand Down