From 606913401677593ff851cc74eaaf9a2fddbf64a3 Mon Sep 17 00:00:00 2001 From: Aditya Sripal Date: Wed, 9 Mar 2022 17:20:10 +0100 Subject: [PATCH] add sequence to verify packet methods --- 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 a95f5158a..8522f59ef 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) } function verifyNextSequenceRecv( @@ -209,9 +209,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(