Skip to content

Commit 93bdc1c

Browse files
fix: commited incomplete swiftlint fix (broken Swift code)
1 parent 7da5477 commit 93bdc1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/web3swift/Utils/EIP/EIP67Code.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ extension Web3 {
113113
return code
114114
}
115115

116-
private static func parseEncodingComponents(_ code: inout EIP67Code, _ encoding: ) {
117-
guard let components = URLComponents(string: encoding)?.queryItems else { return code }
116+
private static func parseEncodingComponents(_ code: inout EIP67Code, _ encoding: String) {
117+
guard let components = URLComponents(string: encoding)?.queryItems else { return }
118118
for comp in components {
119119
switch comp.name {
120120
case "value":
121-
guard let value = comp.value, let val = BigUInt(value, radix: 10) else { return nil }
121+
guard let value = comp.value, let val = BigUInt(value, radix: 10) else { return }
122122
code.amount = val
123123
case "gas":
124-
guard let value = comp.value, let val = BigUInt(value, radix: 10) else { return nil }
124+
guard let value = comp.value, let val = BigUInt(value, radix: 10) else { return }
125125
code.gasLimit = val
126126
case "data":
127-
guard let value = comp.value, let data = Data.fromHex(value) else { return nil }
127+
guard let value = comp.value, let data = Data.fromHex(value) else { return }
128128
code.data = EIP67Code.DataType.data(data)
129129
case "function":
130130
continue

0 commit comments

Comments
 (0)