From 30a5f2cf376d1c81aefcb6a947352062642ac6c5 Mon Sep 17 00:00:00 2001 From: Hussein Ait Lahcen Date: Sat, 11 Jan 2025 15:33:22 +0100 Subject: [PATCH] feat(zkgm): optimized calldata commitment when possible --- evm/contracts/apps/ucs/03-zkgm/Zkgm.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evm/contracts/apps/ucs/03-zkgm/Zkgm.sol b/evm/contracts/apps/ucs/03-zkgm/Zkgm.sol index afbbaf9e54..b19a08b516 100644 --- a/evm/contracts/apps/ucs/03-zkgm/Zkgm.sol +++ b/evm/contracts/apps/ucs/03-zkgm/Zkgm.sol @@ -757,7 +757,7 @@ contract UCS03Zkgm is bytes calldata ack, address relayer ) external virtual override onlyIBC { - bytes32 packetHash = IBCPacketLib.commitPacketMemory(ibcPacket); + bytes32 packetHash = IBCPacketLib.commitPacket(ibcPacket); IBCPacket memory parent = inFlightPacket[packetHash]; // Specific case of forwarding where the ack is threaded back directly. if (parent.timeoutTimestamp != 0 || parent.timeoutHeight != 0) { @@ -934,7 +934,7 @@ contract UCS03Zkgm is IBCPacket calldata ibcPacket, address relayer ) external virtual override onlyIBC { - bytes32 packetHash = IBCPacketLib.commitPacketMemory(ibcPacket); + bytes32 packetHash = IBCPacketLib.commitPacket(ibcPacket); IBCPacket memory parent = inFlightPacket[packetHash]; // Specific case of forwarding where the failure is threaded back directly. if (parent.timeoutTimestamp != 0 || parent.timeoutHeight != 0) {