From 190325a3d2d022b55580d017194d57b32394972c Mon Sep 17 00:00:00 2001 From: Dmytrol <46675332+Dimitrolito@users.noreply.github.com> Date: Sat, 17 May 2025 18:18:42 +0300 Subject: [PATCH] Update utils.sol --- sol/src/honk/utils.sol | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sol/src/honk/utils.sol b/sol/src/honk/utils.sol index 6785d0ccdd..ae11595f6b 100644 --- a/sol/src/honk/utils.sol +++ b/sol/src/honk/utils.sol @@ -23,22 +23,15 @@ function bytes32ToString(bytes32 value) pure returns (string memory result) { function logG(string memory name, Honk.G1ProofPoint memory p) pure { Honk.G1Point memory point = convertProofPoint(p); - - // TODO: convert both to hex before printing to line up with cpp string memory x = bytes32ToString(bytes32(point.x)); string memory y = bytes32ToString(bytes32(point.y)); - - string memory message = string(abi.encodePacked(name, " x: ", x, " y: ", y)); - console2.log(message); + console2.log(name, x, y); } function logG(string memory name, uint256 i, Honk.G1Point memory point) pure { - // TODO: convert both to hex before printing to line up with cpp string memory x = bytes32ToString(bytes32(point.x)); string memory y = bytes32ToString(bytes32(point.y)); - - string memory message = string(abi.encodePacked(" x: ", x, " y: ", y)); - console2.log(name, i, message); + console2.log(name, i, x, y); } function logUint(string memory name, uint256 value) pure {