We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5d1018 commit a9f59a3Copy full SHA for a9f59a3
run/models/transactionreceipt.js
@@ -22,7 +22,7 @@ module.exports = (sequelize, DataTypes) => {
22
23
async insertAnalyticEvent(sequelizeTransaction) {
24
const transaction = await this.getTransaction();
25
- const gasPrice = this.raw.effectiveGasPrice || this.raw.gasPrice;
+ const gasPrice = this.raw.effectiveGasPrice || this.raw.gasPrice || transaction.gasPrice;
26
const transactionFee = BigNumber.from(this.gasUsed).mul(BigNumber.from(gasPrice));
27
28
return sequelize.models.TransactionEvent.create({
0 commit comments