Skip to content

Commit a9f59a3

Browse files
committed
fix event insertion
1 parent c5d1018 commit a9f59a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run/models/transactionreceipt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = (sequelize, DataTypes) => {
2222

2323
async insertAnalyticEvent(sequelizeTransaction) {
2424
const transaction = await this.getTransaction();
25-
const gasPrice = this.raw.effectiveGasPrice || this.raw.gasPrice;
25+
const gasPrice = this.raw.effectiveGasPrice || this.raw.gasPrice || transaction.gasPrice;
2626
const transactionFee = BigNumber.from(this.gasUsed).mul(BigNumber.from(gasPrice));
2727

2828
return sequelize.models.TransactionEvent.create({

0 commit comments

Comments
 (0)