-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indexer-agent: fix gas price in tx management logs #392
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore this sorry 🙏
logger.warning( | ||
`Max gas price has been reached, waiting until gas price estimates fall below to resume transaction execution.`, | ||
{ | ||
baseFeePerGasMax: this.baseFeePerGasMax, | ||
currentGasPriceEstimate: feeData.gasPrice, | ||
currentGasPriceEstimate: feeData.gasPrice.toNumber(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you need a non-null assertion here, so it would be feeData.gasPrice!.toNumber()
}, | ||
) | ||
} else { | ||
logger.info(`Gas price estimation still above max threshold`, { | ||
baseFeePerGasMax: this.baseFeePerGasMax, | ||
currentGasPriceEstimate: feeData.gasPrice, | ||
currentGasPriceEstimate: feeData.gasPrice.toNumber(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well.
@chriswessels been about 2 years here in review 😬. I'm going to just pick this one up and finish it. |
Closing in favor of #954 |
Fixes BigNumber logs like this: