Skip to content

Commit f665a7c

Browse files
Merge pull request #484 from mloit/fix-transaction-index
2 parents 39b76e6 + 276815f commit f665a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Web3/Web3+Structures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public struct TransactionDetails: Decodable {
192192
let blockHash = try decodeHexToData(container, key: .blockHash, allowOptional: true)
193193
self.blockHash = blockHash
194194

195-
let transactionIndex = try decodeHexToBigUInt(container, key: .blockNumber, allowOptional: true)
195+
let transactionIndex = try decodeHexToBigUInt(container, key: .transactionIndex, allowOptional: true)
196196
self.transactionIndex = transactionIndex
197197

198198
let transaction = try EthereumTransaction(from: decoder)

0 commit comments

Comments
 (0)