Skip to content

Commit 276815f

Browse files
committed
Fix Issue #464. TransactionDetails incorrectly showing blockNumber as transactionIndex
1 parent 5b45521 commit 276815f

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)