Skip to content

Commit

Permalink
fix: add missing console logs
Browse files Browse the repository at this point in the history
I copy pasted the console2 functions to console and replaced `int256` with `int`.
  • Loading branch information
DaniPopes committed Jul 2, 2024
1 parent 8948d45 commit 06fcfe4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/console.sol
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ library console {
_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
}

function log(int p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
}

function log(string memory p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
}
Expand Down Expand Up @@ -218,6 +222,10 @@ library console {
_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
}

function log(string memory p0, int p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,int)", p0, p1));
}

function log(string memory p0, string memory p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
}
Expand Down

0 comments on commit 06fcfe4

Please sign in to comment.