diff --git a/nimbus/db/db_chain.nim b/nimbus/db/db_chain.nim index 6c88aceb7..c4f640d72 100644 --- a/nimbus/db/db_chain.nim +++ b/nimbus/db/db_chain.nim @@ -28,7 +28,7 @@ type blockNumber: BlockNumber index: int -proc newBaseChainDB*(db: TrieDatabaseRef, pruneTrie: bool): BaseChainDB = +proc newBaseChainDB*(db: TrieDatabaseRef, pruneTrie: bool = true): BaseChainDB = new(result) result.db = db result.accountCodes = newTable[Hash256, ByteRange]() diff --git a/tests/test_generalstate_json.nim b/tests/test_generalstate_json.nim index fd9b40d6c..d09f6f9df 100644 --- a/tests/test_generalstate_json.nim +++ b/tests/test_generalstate_json.nim @@ -56,7 +56,7 @@ proc testFixtureIndexes(header: BlockHeader, pre: JsonNode, transaction: Transac # fixtures/GeneralStateTests/stTransactionTest/TransactionSendingToEmpty.json #db.addBalance(generateAddress(sender, transaction.accountNonce), transaction.value) - let createGasUsed = applyCreateTransaction(db, transaction, header, vmState, sender, true) + let createGasUsed = applyCreateTransaction(db, transaction, vmState, sender, true) db.addBalance(header.coinbase, createGasUsed) return var computation = setupComputation(header, vmState, transaction, sender)