mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 05:14:14 +00:00
fix tests
This commit is contained in:
parent
0b7b577af6
commit
c954dc7d62
@ -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]()
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user