From 8ee44e33219d27bf8f96833fc1212e6a8309918e Mon Sep 17 00:00:00 2001 From: Matjaz Verbole Date: Thu, 11 Jan 2024 13:06:02 +0100 Subject: [PATCH] Add some logs to different deployment scripts --- script/L1LiskToken.s.sol | 5 +++-- script/L2Claim.s.sol | 6 ++++-- script/example/L2ClaimTokens.s.sol | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/script/L1LiskToken.s.sol b/script/L1LiskToken.s.sol index 072c8949..09e5832f 100644 --- a/script/L1LiskToken.s.sol +++ b/script/L1LiskToken.s.sol @@ -22,10 +22,11 @@ contract L1LiskTokenScript is Script { // Deployer's private key. Owner of the L1 Lisk token. PRIVATE_KEY is set in .env file. uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); + console2.log("Deploying L1 Lisk token..."); + // Address, the ownership of L1 Lisk token contract is transferred to after deployment. address ownerAddress = vm.envAddress("L1_TOKEN_OWNER_ADDRESS"); - - console2.log("Deploying L1 Lisk token..."); + console2.log("L1 Lisk token owner address: %s", ownerAddress); // deploy L1LiskToken contract and transfer its ownership vm.startBroadcast(deployerPrivateKey); diff --git a/script/L2Claim.s.sol b/script/L2Claim.s.sol index 852bdeb7..49c3a186 100644 --- a/script/L2Claim.s.sol +++ b/script/L2Claim.s.sol @@ -25,13 +25,15 @@ contract L2ClaimScript is Script { // file. uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); + console2.log("Deploying L2 Claim contract..."); + // DAO Address, will be used to receive unclaimed LSK after claim period address daoAddress = vm.envAddress("DAO_ADDRESS"); + console2.log("DAO address: %s", daoAddress); // Owner Address, the ownership of L2Claim Proxy Contract is transferred to after deployment. address ownerAddress = vm.envAddress("L2_CLAIM_OWNER_ADDRESS"); - - console2.log("Deploying L2 Claim contract..."); + console2.log("L2 Claim contract owner address: %s", ownerAddress); // get L2LiskToken contract address Utils.L2AddressesConfig memory l2AddressesConfig = utils.readL2AddressesFile(); diff --git a/script/example/L2ClaimTokens.s.sol b/script/example/L2ClaimTokens.s.sol index fd18bdf2..e51cbe41 100644 --- a/script/example/L2ClaimTokens.s.sol +++ b/script/example/L2ClaimTokens.s.sol @@ -16,7 +16,7 @@ contract L2ClaimTokensScript is Script { } /// @notice This function claims L2 Lisk tokens from the L2 Claim contract for a demonstration purpose. - function run() public { + function run() public view { uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); // print deployer address