We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232b6b1 commit 8093b3eCopy full SHA for 8093b3e
Sources/web3swift/Utils/EIP/EIP681.swift
@@ -60,7 +60,7 @@ extension Web3 {
60
<<<<<<< HEAD
61
=======
62
63
- public func makeEIP681Link() -> String? {
+ public func makeEIP681Link(urlEncode: Bool = false) -> String? {
64
let address: String
65
switch targetAddress {
66
case .ethereumAddress(let ethereumAddress):
@@ -87,7 +87,7 @@ extension Web3 {
87
link = "\(link)?\(queryParameters.joined(separator: "&"))"
88
}
89
90
- return link
+ return urlEncode ? link.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) : link
91
92
93
0 commit comments