Skip to content

Commit a5092d0

Browse files
committed
[ETCM-472] Name params in constructor call sites
1 parent 8fcf51a commit a5092d0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/main/scala/io/iohk/ethereum/jsonrpc/EthService.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,12 @@ class EthService(
355355
else receipt.cumulativeGasUsed - receipts(txIndex - 1).cumulativeGasUsed
356356

357357
TransactionReceiptResponse(
358-
receipt,
359-
stx,
360-
sender,
361-
txIndex,
362-
header,
363-
gasUsed
358+
receipt = receipt,
359+
stx = stx,
360+
signedTransactionSender = sender,
361+
transactionIndex = txIndex,
362+
blockHeader = header,
363+
gasUsedByTransaction = gasUsed
364364
)
365365
}
366366

src/test/scala/io/iohk/ethereum/jsonrpc/EthServiceSpec.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,12 +1071,12 @@ class EthServiceSpec
10711071
GetTransactionReceiptResponse(
10721072
Some(
10731073
TransactionReceiptResponse(
1074-
fakeReceipt.copy(cumulativeGasUsed = fakeReceipt.cumulativeGasUsed + gasUsedByTx),
1075-
contractCreatingTransaction,
1076-
contractCreatingTransactionSender,
1077-
1,
1078-
Fixtures.Blocks.Block3125369.header,
1079-
gasUsedByTx
1074+
receipt = fakeReceipt.copy(cumulativeGasUsed = fakeReceipt.cumulativeGasUsed + gasUsedByTx),
1075+
stx = contractCreatingTransaction,
1076+
signedTransactionSender = contractCreatingTransactionSender,
1077+
transactionIndex = 1,
1078+
blockHeader = Fixtures.Blocks.Block3125369.header,
1079+
gasUsedByTransaction = gasUsedByTx
10801080
)
10811081
)
10821082
)

0 commit comments

Comments
 (0)