We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
transactionIndex
blockNumber
1 parent 281fc8f commit 1c9fc34Copy full SHA for 1c9fc34
Sources/web3swift/Web3/Web3+Structures.swift
@@ -140,7 +140,7 @@ public struct TransactionDetails: Decodable {
140
let container = try decoder.container(keyedBy: CodingKeys.self)
141
self.blockNumber = try? container.decodeHex(BigUInt.self, forKey: .blockNumber)
142
self.blockHash = try? container.decodeHex(Data.self, forKey: .blockHash)
143
- self.transactionIndex = try? container.decodeHex(BigUInt.self, forKey: .blockNumber)
+ self.transactionIndex = try? container.decodeHex(BigUInt.self, forKey: .transactionIndex)
144
self.transaction = try EthereumTransaction(from: decoder)
145
}
146
0 commit comments