File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Sources/web3swift/Convenience Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 8
8
import BigInt
9
9
import Foundation
10
10
11
- struct AnyCodingKey : CodingKey {
12
- var stringValue : String
13
- var intValue : Int ?
14
-
15
- init ? ( stringValue: String ) {
16
- self . stringValue = stringValue
17
- }
18
-
19
- init ? ( intValue: Int ) {
20
- self . intValue = intValue
21
- self . stringValue = String ( intValue)
22
- }
23
- }
24
-
25
11
extension KeyedDecodingContainer {
26
12
/// Decodes a value of the given key from Hex to `DecodableFromHex`
27
13
///
Original file line number Diff line number Diff line change 7
7
//
8
8
import Foundation
9
9
10
+ struct AnyCodingKey : CodingKey {
11
+ var stringValue : String
12
+ var intValue : Int ?
13
+
14
+ init ? ( stringValue: String ) {
15
+ self . stringValue = stringValue
16
+ }
17
+
18
+ init ? ( intValue: Int ) {
19
+ self . intValue = intValue
20
+ self . stringValue = String ( intValue)
21
+ }
22
+ }
23
+
10
24
extension KeyedEncodingContainer {
11
25
/// Encodes the given value for the given key.
12
26
///
You can’t perform that action at this time.
0 commit comments