Skip to content

Commit

Permalink
[NoStory] Update deploy script for renamed vars and fix readme (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbere authored Dec 16, 2022
1 parent 712b29b commit 884acaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit 884acaa

Please sign in to comment.