From a6d2bc8a665749e3ebc23f9370f0fecb52294053 Mon Sep 17 00:00:00 2001 From: Gancho Radkov <43912948+ganchoradkov@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:26:31 +0200 Subject: [PATCH] refactor: pairing methods --- docs/specs/clients/core/pairing/pairing-methods.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/specs/clients/core/pairing/pairing-methods.md b/docs/specs/clients/core/pairing/pairing-methods.md index 4387e676..f0617c0b 100644 --- a/docs/specs/clients/core/pairing/pairing-methods.md +++ b/docs/specs/clients/core/pairing/pairing-methods.md @@ -4,7 +4,7 @@ ## 1. Peer B matches URI's list exactly ### Peer A's pairing uri: - uri = "...methods=[wc_sessionPropose],[wc_authRequest,wc_authBatchRequest]" + uri = "...methods=wc_sessionPropose,wc_authRequest,wc_authBatchRequest" ### Peer B's registered methods: @@ -18,7 +18,7 @@ is valid? Yes ## 2. Peer B matches one inner array exactly and partially matches another inner array ### Peer A's pairing uri: - uri = "...methods=[wc_sessionPropose],[wc_authBatchRequest]" + uri = "...methods=wc_sessionPropose,wc_authBatchRequest" ### Peer B's registered methods: @@ -32,7 +32,7 @@ is valid? Yes ## 3. Peer B contains more methods than URI's list of methods ### Peer A's pairing uri: - uri = "...methods=[wc_sessionPropose]" + uri = "...methods=wc_sessionPropose" ### Peer B's registered methods: @@ -46,7 +46,7 @@ is valid? Yes ## 4. Peer B matches an inner array and does not partially match the other inner array ### Peer A's pairing uri: - uri = "...methods=[wc_sessionPropose],[wc_authRequest]" + uri = "...methods=wc_sessionPropose,wc_authRequest" ### Peer B's registered methods: @@ -60,11 +60,11 @@ is valid? No ## 5. Peer B does not match any inner arrays ### Peer A's pairing uri: - uri = "...methods=[wc_sessionPropose],[wc_authRequest]" + uri = "...methods=wc_sessionPropose,wc_authRequest" ### Peer B's registered methods: var registeredMethods = [{ method = "wc_sessionProposeV2", type = ProtocolType.Sign },{ method = "wc_authBatchRequest", type = ProtocolType.Auth }] -is valid? No \ No newline at end of file +is valid? No