Skip to content

Commit

Permalink
Fix AppMetadata init
Browse files Browse the repository at this point in the history
  • Loading branch information
radeknovis committed Nov 10, 2023
1 parent e9e59ef commit 924f1ff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/WalletConnect/WalletConnectSwiftV2",
from: "1.9.2"
from: "1.9.8"
),
.package(
url: "https://github.com/WalletConnect/QRCode",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/WalletConnect/WalletConnectSwiftV2",
"state" : {
"revision" : "c3c84f221ef945edb766125bc07f03c7694fc516",
"version" : "1.9.2"
"revision" : "addf9a3688ef5e5d9d148ecbb30ca0fd3132b908",
"version" : "1.9.8"
}
}
],
Expand Down
3 changes: 2 additions & 1 deletion Sample/Example/ExampleApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ struct ExampleApp: App {
name: "Web3Modal Swift Dapp",
description: "Web3Modal DApp sample",
url: "wallet.connect",
icons: ["https://avatars.githubusercontent.com/u/37784886"]
icons: ["https://avatars.githubusercontent.com/u/37784886"],
redirect: .init(native: "", universal: "")
)

let projectId = Secrets.load().projectID
Expand Down
11 changes: 10 additions & 1 deletion Sources/Web3Modal/Components/AccountButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,16 @@ public struct AccountButtonPreviewView: View {
store.balance = balance
store.session = .stub

Web3Modal.configure(projectId: "", metadata: .init(name: "", description: "", url: "", icons: []))
Web3Modal.configure(
projectId: "",
metadata: .init(
name: "",
description: "",
url: "",
icons: [],
redirect: .init(native: "", universal: "")
)
)

return store
}
Expand Down

0 comments on commit 924f1ff

Please sign in to comment.