@@ -101,11 +101,11 @@ extension KeyedDecodingContainer {
101
101
102
102
/// Decodes a value of the given key from Hex to `DecodableFromHex`
103
103
///
104
- /// Currently this method supports only `Data.Type`, `BigUInt.Type`, `Date.Type`
104
+ /// Currently this method supports only `Data.Type`, `BigUInt.Type`, `Date.Type`, `UInt.Type`
105
105
///
106
106
/// - Parameter type: Generic type `T` wich conforms to `DecodableFromHex` protocol
107
107
/// - Parameter key: The key that the decoded value is associated with.
108
- /// - Returns: A decoded value of type `BigUInt `
108
+ /// - Returns: A decoded value of type `T `
109
109
/// - throws: `Web3Error.dataError` if value associated with key are unable to be initialized as `DecodableFromHex`.
110
110
public func decodeHex< T: DecodableFromHex > ( _ type: T . Type , forKey: KeyedDecodingContainer < K > . Key ) throws -> T {
111
111
let hexString = try self . decode ( String . self, forKey: forKey)
@@ -115,11 +115,11 @@ extension KeyedDecodingContainer {
115
115
116
116
/// Decodes a value of the given key from Hex to `[DecodableFromHex]`
117
117
///
118
- /// Currently this method supports only `Data.Type`, `BigUInt.Type`, `Date.Type`
118
+ /// Currently this method supports only `Data.Type`, `BigUInt.Type`, `Date.Type`, `UInt.Type`
119
119
///
120
120
/// - Parameter type: Array of a generic type `T` wich conforms to `DecodableFromHex` protocol
121
121
/// - Parameter key: The key that the decoded value is associated with.
122
- /// - Returns: A decoded value of type `BigUInt `
122
+ /// - Returns: A decoded value of type `T `
123
123
/// - throws: `Web3Error.dataError` if value associated with key are unable to be initialized as `[[DecodableFromHex]]`.
124
124
public func decodeHex< T: DecodableFromHex > ( _ type: [ T ] . Type, forKey: KeyedDecodingContainer < K > . Key ) throws -> [ T ] {
125
125
var container = try nestedUnkeyedContainer ( forKey: forKey)
@@ -129,11 +129,11 @@ extension KeyedDecodingContainer {
129
129
130
130
/// Decodes a value of the given key from Hex to `[DecodableFromHex]`
131
131
///
132
- /// Currently this method supports only `Data.Type`, `BigUInt.Type`, `Date.Type`, `EthereumAddress`
132
+ /// Currently this method supports only `Data.Type`, `BigUInt.Type`, `Date.Type`, `EthereumAddress`, `UInt.Type`
133
133
///
134
134
/// - Parameter type: Array of a generic type `T` wich conforms to `DecodableFromHex` protocol
135
135
/// - Parameter key: The key that the decoded value is associated with.
136
- /// - Returns: A decoded value of type `BigUInt `
136
+ /// - Returns: A decoded value of type `T `
137
137
/// - throws: `Web3Error.dataError` if value associated with key are unable to be initialized as `[[DecodableFromHex]]`.
138
138
public func decodeHex< T: DecodableFromHex > ( _ type: [ [ T ] ] . Type, forKey: KeyedDecodingContainer < K > . Key ) throws -> [ [ T ] ] {
139
139
var container = try nestedUnkeyedContainer ( forKey: forKey)
0 commit comments