Skip to content

Commit

Permalink
Bump w3m and include sample wallet in customWallets; fix force unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
radeknovis committed Jan 23, 2024
1 parent 880b82a commit d2a45b2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,14 @@ struct SessionAccountView: View {

Spacer()

let record = Sign.instance.getSessionRequestRecord(id: response.id)!
Text(record.request.method)
.font(
Font.system(size: 14, weight: .medium)
)
.foregroundColor(Color(red: 0.58, green: 0.62, blue: 0.62))
.padding(12)
if let record = Sign.instance.getSessionRequestRecord(id: response.id) {
Text(record.request.method)
.font(
Font.system(size: 14, weight: .medium)
)
.foregroundColor(Color(red: 0.58, green: 0.62, blue: 0.62))
.padding(12)
}
}

ZStack {
Expand Down
12 changes: 11 additions & 1 deletion Example/DApp/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

Web3Modal.configure(
projectId: InputConfig.projectId,
metadata: metadata
metadata: metadata,
customWallets: [
.init(
id: "swift-sample",
name: "Swift Sample Wallet",
homepage: "https://walletconnect.com/",
imageUrl: "https://avatars.githubusercontent.com/u/37784886?s=200&v=4",
order: 1,
mobileLink: "walletapp://"
)
]
)

setupWindow(scene: scene)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@
"repositoryURL": "https://github.com/WalletConnect/web3modal-swift",
"state": {
"branch": null,
"revision": "3295d69d1b12df29a5040578d107f56986b1b399",
"version": "1.0.13"
"revision": "296b2b72c116807a862e4c08ecf0a78ff044f87a",
"version": "1.0.16"
}
}
]
Expand Down

0 comments on commit d2a45b2

Please sign in to comment.