Skip to content

Commit

Permalink
Add some logs to different deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
matjazv committed Jan 15, 2024
1 parent 7f4d9d8 commit 8ee44e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions script/L1LiskToken.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 4 additions & 2 deletions script/L2Claim.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion script/example/L2ClaimTokens.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ee44e3

Please sign in to comment.