Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Develop

See merge request papers/airgap/beacon-ios-sdk!63
  • Loading branch information
jsamol committed Nov 7, 2022
2 parents 4722260 + 3b1272f commit 7e95e29
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BeaconBlockchainSubstrate.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BeaconBlockchainSubstrate"
spec.version = "3.2.2"
spec.version = "3.2.3"
spec.summary = "Beacon is an implementation of the wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconBlockchainSubstrate provides a set of messages, utility functions and other components specific for Substrate blockchains."
spec.description = <<-DESC
Beacon is an implementation of the Tezos wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconBlockchainSubstrate provides a set of messages, utility functions and other components specific for Substrate blockchains.
Expand Down
2 changes: 1 addition & 1 deletion BeaconBlockchainTezos.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BeaconBlockchainTezos"
spec.version = "3.2.2"
spec.version = "3.2.3"
spec.summary = "Beacon is an implementation of the wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconBlockchainTezos provides a set of messages, utility functions and other components specific for the Tezos blockchain."
spec.description = <<-DESC
Beacon is an implementation of the Tezos wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconBlockchainTezos provides a set of messages, utility functions and other components specific for the Tezos blockchain.
Expand Down
2 changes: 1 addition & 1 deletion BeaconClientDApp.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BeaconClientDApp"
spec.version = "3.2.2"
spec.version = "3.2.3"
spec.summary = "Beacon is an implementation of the wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconClientDApp provides the Beacon implementation for dApps."
spec.description = <<-DESC
Beacon is an implementation of the Tezos wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconClientDApp provides the Beacon implementation for dApps.
Expand Down
2 changes: 1 addition & 1 deletion BeaconClientWallet.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BeaconClientWallet"
spec.version = "3.2.2"
spec.version = "3.2.3"
spec.summary = "Beacon is an implementation of the wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconClientWallet provides the Beacon implementation for wallets."
spec.description = <<-DESC
Beacon is an implementation of the Tezos wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconClientWallet provides the Beacon implementation for wallets.
Expand Down
2 changes: 1 addition & 1 deletion BeaconCore.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BeaconCore"
spec.version = "3.2.2"
spec.version = "3.2.3"
spec.summary = "Beacon is an implementation of the wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconCore is a common base for other targets."
spec.description = <<-DESC
Beacon is an implementation of the Tezos wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconCore is a common base for other targets.
Expand Down
2 changes: 1 addition & 1 deletion BeaconTransportP2PMatrix.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BeaconTransportP2PMatrix"
spec.version = "3.2.2"
spec.version = "3.2.3"
spec.summary = "Beacon is an implementation of the wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconTransportP2PMatrix provides a P2P implementation which uses Matrix network for the communication."
spec.description = <<-DESC
Beacon is an implementation of the Tezos wallet interaction standard tzip-10 which describes the connection of a dApp with a wallet. BeaconTransportP2PMatrix provides a P2P implementation which uses Matrix network for the communication."
Expand Down
10 changes: 9 additions & 1 deletion Sources/Core/Transport/P2P/P2P.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,15 @@ public extension Transport {
p2pPeers.forEachAsync(
body: { (peer: Beacon.P2PPeer, innerCompletion: @escaping (Result<(), Swift.Error>) -> ()) -> () in
if !peer.isPaired {
self.client.sendPairingResponse(to: peer, completion: innerCompletion)
self.client.sendPairingResponse(to: peer) { innerResult in
guard innerResult.isSuccess(else: innerCompletion) else { return }
self.storageManager.add(
[.p2p(.init(from: peer, isPaired: true))],
overwrite: true,
distinguishBy: { [$0.id] },
completion: innerCompletion
)
}
} else {
innerCompletion(.success(()))
}
Expand Down

0 comments on commit 7e95e29

Please sign in to comment.