From d6b89eba4eccb6a94e3dfd012e28b8ca5577a450 Mon Sep 17 00:00:00 2001 From: Maxime Berenshteyn Date: Thu, 15 Dec 2022 16:42:52 -0500 Subject: [PATCH] [NoStory] Update deploy script for renamed vars and fix readme --- README.md | 1 + scripts/deploy.s.sol | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1a8011c..4162a90 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/scripts/deploy.s.sol b/scripts/deploy.s.sol index 487b526..2574545 100644 --- a/scripts/deploy.s.sol +++ b/scripts/deploy.s.sol @@ -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; @@ -152,7 +152,7 @@ contract DeployScript is Script { tokenMinter.setMaxBurnAmountPerMessage( usdcContractAddress, - burnLimitPerTransaction + burnLimitPerMessage ); tokenMinter.linkTokenPair( @@ -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"