@@ -210,7 +210,7 @@ extension TransactionOptions: Decodable {
210210 let defaultOptions = TransactionOptions . defaultOptions
211211
212212 // type is guaranteed to be set after this
213- if let typeUInt = try ? container. decodeHex ( to : UInt . self, key : . type) {
213+ if let typeUInt = try ? container. decodeHex ( UInt . self, forKey : . type) {
214214 if typeUInt < TransactionType . total. rawValue {
215215 guard let type = TransactionType ( rawValue: typeUInt) else { throw Web3Error . dataError }
216216 self . type = type
@@ -231,43 +231,43 @@ extension TransactionOptions: Decodable {
231231
232232 self . from = try container. decodeIfPresent ( EthereumAddress . self, forKey: . to)
233233
234- if let gasPrice = try ? container. decodeHex ( to : BigUInt . self, key : . gasPrice) {
234+ if let gasPrice = try ? container. decodeHex ( BigUInt . self, forKey : . gasPrice) {
235235 self . gasPrice = . manual( gasPrice)
236236 } else {
237237 self . gasPrice = defaultOptions. gasPrice
238238 }
239239
240- if let gasLimit = try ? container. decodeHex ( to : BigUInt . self, key : . gas) {
240+ if let gasLimit = try ? container. decodeHex ( BigUInt . self, forKey : . gas) {
241241 self . gasLimit = . manual( gasLimit)
242242 } else {
243243 self . gasLimit = defaultOptions. gasLimit
244244 }
245245
246- if let maxFeePerGas = try ? container. decodeHex ( to : BigUInt . self, key : . maxFeePerGas) {
246+ if let maxFeePerGas = try ? container. decodeHex ( BigUInt . self, forKey : . maxFeePerGas) {
247247 self . maxFeePerGas = . manual( maxFeePerGas)
248248 } else {
249249 self . maxFeePerGas = defaultOptions. maxFeePerGas
250250 }
251251
252- if let maxPriorityFeePerGas = try ? container. decodeHex ( to : BigUInt . self, key : . maxPriorityFeePerGas) {
252+ if let maxPriorityFeePerGas = try ? container. decodeHex ( BigUInt . self, forKey : . maxPriorityFeePerGas) {
253253 self . maxPriorityFeePerGas = . manual( maxPriorityFeePerGas)
254254 } else {
255255 self . maxPriorityFeePerGas = defaultOptions. maxPriorityFeePerGas
256256 }
257257
258- if let value = try ? container. decodeHex ( to : BigUInt . self, key : . value) {
258+ if let value = try ? container. decodeHex ( BigUInt . self, forKey : . value) {
259259 self . value = value
260260 } else {
261261 self . value = defaultOptions. value
262262 }
263263
264- if let nonce = try ? container. decodeHex ( to : BigUInt . self, key : . nonce) {
264+ if let nonce = try ? container. decodeHex ( BigUInt . self, forKey : . nonce) {
265265 self . nonce = . manual( nonce)
266266 } else {
267267 self . nonce = defaultOptions. nonce
268268 }
269269
270- if let callOnBlock = try ? container. decodeHex ( to : BigUInt . self, key : . callOnBlock) {
270+ if let callOnBlock = try ? container. decodeHex ( BigUInt . self, forKey : . callOnBlock) {
271271 self . callOnBlock = . exactBlockNumber( callOnBlock)
272272 } else {
273273 self . callOnBlock = defaultOptions. callOnBlock
0 commit comments