Skip to content

Commit

Permalink
fix: add missing console logs (#577)
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 authored Jul 2, 2024
1 parent 8948d45 commit da804c1
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 da804c1

Please sign in to comment.