diff --git a/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumBlockDeltaProcessorTest.kt b/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumBlockDeltaProcessorTest.kt index 0bd2de62..49fa905d 100644 --- a/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumBlockDeltaProcessorTest.kt +++ b/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumBlockDeltaProcessorTest.kt @@ -44,7 +44,7 @@ class EthereumBlockDeltaProcessorTest { totalDifficulty = BigInteger("3468611771897182658973"), size = 23681, unclesReward = BigDecimal("1.875"), blockReward = BigDecimal("3"), txFees = BigDecimal("0.214262252548096035"), gasUsed = 5981414, gasLimit = 8000029, - timestamp = Instant.now(), logsBloom = "", transactionsRoot = "", stateRoot = "", + timestamp = Instant.ofEpochMilli(100000), logsBloom = "", transactionsRoot = "", stateRoot = "", sha3Uncles = "0x8e087e9269dd7ba6cef2b2def746f07c06df35d9947480799ef38143301cc20e", nonce = 1, receiptsRoot = "", extraData = "", uncles = emptyList() ) diff --git a/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumTxDeltaProcessorTest.kt b/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumTxDeltaProcessorTest.kt index 24d81398..5375435a 100644 --- a/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumTxDeltaProcessorTest.kt +++ b/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumTxDeltaProcessorTest.kt @@ -48,7 +48,7 @@ class EthereumTxDeltaProcessorTest { private val tx = EthereumTx( hash = "0x64c95bb2b75068ae92c36c5e3888e61af5de4398dd6eab64013cc1f96fd2ccf3", nonce = 0, blockHash = "0x97bda148dc1c0181bfca62d0af4443e736a65c8b2909062abd8c8c6aa9e62d85", - blockNumber = 4959189, blockTime = Instant.now(), positionInBlock = 1, + blockNumber = 4959189, blockTime = Instant.ofEpochMilli(100000), positionInBlock = 1, from = "0x4585c7eaa2cb96d4b59e868929efabeeb8e65b07", to = "0x39a629145280fd28b74b878e44d6fed7bd4dffe5", value = BigDecimal("0.8"), gasPrice = BigDecimal("0.000000023"), gasLimit = 21000L, gasUsed = 21000L, fee = BigDecimal("0.000483"), input = "", createdSmartContract = null diff --git a/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumUncleDeltaProcessorTest.kt b/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumUncleDeltaProcessorTest.kt index 7280cd58..a6d67a48 100644 --- a/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumUncleDeltaProcessorTest.kt +++ b/contract-summary/ethereum/src/test/kotlin/fund/cyber/contract/ethereum/EthereumUncleDeltaProcessorTest.kt @@ -35,7 +35,7 @@ class EthereumUncleDeltaProcessorTest { private val uncle = EthereumUncle( hash = "0xebeec27b1dc1f01bd6502a2c4ea62d58041d1f6fa6a5d1e18ec552dfd17558c3", position = 0, - number = 5386263, timestamp = Instant.now(), blockNumber = 5386266, blockTime = Instant.now(), + number = 5386263, timestamp = Instant.ofEpochMilli(100000), blockNumber = 5386266, blockTime = Instant.ofEpochMilli(100000), blockHash = "0xa27c04a1f42b2e5264e5cfb0cd1ca6fb84c360cbef63ea1b171906b1018e16dd", miner = "0xea674fdde714fd979de3edf0f56aa9716b898ec8", uncleReward = BigDecimal("1.875") )