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 {
113
113
return code
114
114
}
115
115
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 }
118
118
for comp in components {
119
119
switch comp. name {
120
120
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 }
122
122
code. amount = val
123
123
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 }
125
125
code. gasLimit = val
126
126
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 }
128
128
code. data = EIP67Code . DataType. data ( data)
129
129
case " function " :
130
130
continue
You can’t perform that action at this time.
0 commit comments