Skip to content

Commit

Permalink
feat(zkgm): optimized calldata commitment when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Jan 11, 2025
1 parent 5bddefe commit 30a5f2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evm/contracts/apps/ucs/03-zkgm/Zkgm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 30a5f2c

Please sign in to comment.