From 37ce173dc6542e2aa2732258245af421566c74c4 Mon Sep 17 00:00:00 2001 From: Aditya Date: Mon, 21 Mar 2022 13:12:09 +0100 Subject: [PATCH] add sequence to verify packet methods (#682) --- spec/core/ics-003-connection-semantics/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spec/core/ics-003-connection-semantics/README.md b/spec/core/ics-003-connection-semantics/README.md index c0fcbc0dc..90806709e 100644 --- a/spec/core/ics-003-connection-semantics/README.md +++ b/spec/core/ics-003-connection-semantics/README.md @@ -174,10 +174,10 @@ function verifyPacketData( proof: CommitmentProof, portIdentifier: Identifier, channelIdentifier: Identifier, - sequence: Height, + sequence: uint64, data: bytes) { client = queryClient(connection.clientIdentifier) - return client.verifyPacketData(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, data) + return client.verifyPacketData(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, sequence, data) } function verifyPacketAcknowledgement( @@ -189,7 +189,7 @@ function verifyPacketAcknowledgement( sequence: uint64, acknowledgement: bytes) { client = queryClient(connection.clientIdentifier) - return client.verifyPacketAcknowledgement(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, acknowledgement) + return client.verifyPacketAcknowledgement(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, sequence, acknowledgement) } function verifyPacketReceiptAbsence( @@ -200,7 +200,7 @@ function verifyPacketReceiptAbsence( channelIdentifier: Identifier, sequence: uint64) { client = queryClient(connection.clientIdentifier) - return client.verifyPacketReceiptAbsence(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier) + return client.verifyPacketReceiptAbsence(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, sequence) } // OPTIONAL: verifyPacketReceipt is only required to support new channel types beyond ORDERED and UNORDERED. @@ -222,9 +222,10 @@ function verifyNextSequenceRecv( proof: CommitmentProof, portIdentifier: Identifier, channelIdentifier: Identifier, + sequence: uint64, nextSequenceRecv: uint64) { client = queryClient(connection.clientIdentifier) - return client.verifyNextSequenceRecv(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, nextSequenceRecv) + return client.verifyNextSequenceRecv(connection, height, connection.delayPeriodTime, connection.delayPeriodBlocks, connection.counterpartyPrefix, proof, portIdentifier, channelIdentifier, sequence, nextSequenceRecv) } function getTimestampAtHeight(