Skip to content

Commit

Permalink
feat: remove hardhat console log (not compatible with foundry)
Browse files Browse the repository at this point in the history
  • Loading branch information
defispartan committed Jan 10, 2025
1 parent 8c2faa1 commit 06a8095
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions contracts/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.8.20;

// We import this library to be able to use console.log
import "hardhat/console.sol";


// This is the main building block for smart contracts.
contract Token {
Expand Down Expand Up @@ -49,15 +46,6 @@ contract Token {
// transaction will revert.
require(balances[msg.sender] >= amount, "Not enough tokens");

// We can print messages and values using console.log, a feature of
// Hardhat Network:
console.log(
"Transferring from %s to %s %s tokens",
msg.sender,
to,
amount
);

// Transfer the amount.
balances[msg.sender] -= amount;
balances[to] += amount;
Expand Down

0 comments on commit 06a8095

Please sign in to comment.