Skip to content

Commit 0f14f85

Browse files
committed
Fix parsing response for GetTransactionByHashJsonRpc
1 parent 1e8b0a1 commit 0f14f85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ethereumkit/src/main/java/io/horizontalsystems/ethereumkit/api/jsonrpc/models/RpcTransaction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class RpcTransaction(
99
val nonce: Long,
1010
val blockHash: ByteArray?,
1111
val blockNumber: Long?,
12-
val transactionIndex: Int?,
12+
val transactionIndex: Long?,
1313
val from: Address,
1414
val to: Address?,
1515
val value: BigInteger,

ethereumkit/src/main/java/io/horizontalsystems/ethereumkit/api/jsonrpc/models/RpcTransactionReceipt.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import io.horizontalsystems.ethereumkit.models.TransactionLog
55

66
class RpcTransactionReceipt(
77
val transactionHash: ByteArray,
8-
val transactionIndex: Int,
8+
val transactionIndex: Long,
99
val blockHash: ByteArray,
1010
val blockNumber: Long,
1111
val from: Address,
@@ -17,5 +17,5 @@ class RpcTransactionReceipt(
1717
val logs: List<TransactionLog>,
1818
val logsBloom: ByteArray,
1919
val root: ByteArray?,
20-
val status: Int?
20+
val status: Long?
2121
)

0 commit comments

Comments
 (0)