File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Sources/web3swift/Utils/EIP Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments