Skip to content

Commit

Permalink
Merge pull request #547 from WalletConnect/pair-method-unsupported
Browse files Browse the repository at this point in the history
[Pair] update method unsupported
  • Loading branch information
flypaper0 authored Oct 14, 2022
2 parents 01a03e7 + 5cf0735 commit f5f5d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Example/IntegrationTests/Pairing/PairingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ final class PairingTests: XCTestCase {
let expectation = expectation(description: "wallet responds unsupported method for unregistered method")

appPushClient.responsePublisher.sink { (id, response) in
XCTAssertEqual(response, .failure(WalletConnectPairing.PairError(code: 0)!))
XCTAssertEqual(response, .failure(WalletConnectPairing.PairError(code: 10001)!))
expectation.fulfill()
}.store(in: &publishers)

Expand Down
2 changes: 1 addition & 1 deletion Sources/WalletConnectPairing/Types/PairError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum PairError: Codable, Equatable, Error, Reason {
public var code: Int {
switch self {
case .methodUnsupported:
return 0
return 10001
}
}

Expand Down

0 comments on commit f5f5d8e

Please sign in to comment.