Skip to content

Commit 1c9fc34

Browse files
committed
Restore bug fixed in #465 that was somehow reverted where transactionIndex is decoded using blockNumber key
1 parent 281fc8f commit 1c9fc34

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
@@ -140,7 +140,7 @@ public struct TransactionDetails: Decodable {
140140
let container = try decoder.container(keyedBy: CodingKeys.self)
141141
self.blockNumber = try? container.decodeHex(BigUInt.self, forKey: .blockNumber)
142142
self.blockHash = try? container.decodeHex(Data.self, forKey: .blockHash)
143-
self.transactionIndex = try? container.decodeHex(BigUInt.self, forKey: .blockNumber)
143+
self.transactionIndex = try? container.decodeHex(BigUInt.self, forKey: .transactionIndex)
144144
self.transaction = try EthereumTransaction(from: decoder)
145145
}
146146
}

0 commit comments

Comments
 (0)