Skip to content

Commit 6921f2b

Browse files
committed
Fix type
1 parent 0f14f85 commit 6921f2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ethereumkit/src/main/java/io/horizontalsystems/ethereumkit/models/FullRpcTransaction.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ data class FullRpcTransaction(
1515
when {
1616
rpcReceipt == null -> false
1717
rpcReceipt.status == null -> rpcTransaction.gasLimit == rpcReceipt.cumulativeGasUsed
18-
else -> rpcReceipt.status == 0
18+
else -> rpcReceipt.status == 0L
1919
}
2020

2121
fun transaction(timestamp: Long) =
@@ -24,7 +24,7 @@ data class FullRpcTransaction(
2424
timestamp,
2525
isFailed,
2626
rpcBlock?.number,
27-
rpcReceipt?.transactionIndex,
27+
rpcReceipt?.transactionIndex?.toInt(),
2828
rpcTransaction.from,
2929
rpcTransaction.to,
3030
rpcTransaction.value,

0 commit comments

Comments
 (0)