fixes
This commit is contained in:
parent
291a72b219
commit
04eb445f97
|
@ -23,6 +23,8 @@ import
|
|||
../../constants,
|
||||
../validate
|
||||
|
||||
export results, call_common
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Private functions
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
|
@ -33,6 +33,7 @@ export
|
|||
vmc.getDifficulty,
|
||||
vmc.getGasLimit,
|
||||
vmc.getGasPrice,
|
||||
vmc.addLogEntry,
|
||||
vmc.getGasRefund,
|
||||
vmc.getOrigin,
|
||||
vmc.getStorage,
|
||||
|
|
|
@ -163,7 +163,7 @@ proc setupEnv(com: CommonRef, signer, ks2: EthAddress, ctx: EthContext): TestEnv
|
|||
let sender = tx.getSender()
|
||||
let rc = vmState.processTransaction(tx, sender, vmHeader)
|
||||
doAssert(rc.isOk, "Invalid transaction: " & rc.error)
|
||||
vmState.receipts[txIndex] = makeReceipt(vmState, tx.txType)
|
||||
vmState.receipts[txIndex] = makeReceipt(vmState, tx.txType, rc.value.logEntries())
|
||||
|
||||
com.db.persistReceipts(vmState.receipts)
|
||||
let
|
||||
|
|
|
@ -250,11 +250,11 @@ proc exec(ctx: var TransContext,
|
|||
)
|
||||
continue
|
||||
|
||||
let gasUsed = rc.get()
|
||||
let rec = vmState.makeReceipt(tx.txType)
|
||||
let callResult = rc.get()
|
||||
let rec = vmState.makeReceipt(tx.txType, callResult.logEntries)
|
||||
vmState.receipts.add rec
|
||||
receipts.add toTxReceipt(
|
||||
rec, tx, sender, txIndex, gasUsed
|
||||
rec, tx, sender, txIndex, callResult.gasUsed
|
||||
)
|
||||
includedTx.add tx
|
||||
blobGasUsed += tx.getTotalBlobGas
|
||||
|
|
Loading…
Reference in New Issue