From c9a3f4c677341c0cf3457f895b454a2ac9e6b02e Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 22 Mar 2022 11:59:19 +0530 Subject: [PATCH] added console log in files --- libs/remix-ui/workspace/src/lib/templates/examples.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/remix-ui/workspace/src/lib/templates/examples.ts b/libs/remix-ui/workspace/src/lib/templates/examples.ts index 7f28cae2f2..0999e12372 100644 --- a/libs/remix-ui/workspace/src/lib/templates/examples.ts +++ b/libs/remix-ui/workspace/src/lib/templates/examples.ts @@ -33,6 +33,8 @@ const owner = `// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; +import "hardhat/console.sol"; + /** * @title Owner * @dev Set & change owner @@ -59,6 +61,7 @@ contract Owner { * @dev Set contract deployer as owner */ constructor() { + console.log("Owner contract deployed by:", msg.sender); owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor emit OwnerSet(address(0), owner); } @@ -225,6 +228,7 @@ const ballotTest = `// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; import "remix_tests.sol"; // this import is automatically injected by Remix. +import "hardhat/console.sol"; import "../contracts/3_Ballot.sol"; contract BallotTest { @@ -238,6 +242,7 @@ contract BallotTest { } function checkWinningProposal () public { + console.log("Running checkWinningProposal"); ballotToTest.vote(0); Assert.equal(ballotToTest.winningProposal(), uint(0), "proposal at index 0 should be the winning proposal"); Assert.equal(ballotToTest.winnerName(), bytes32("candidate1"), "candidate1 should be the winner name");