Skip to content
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

Show a insufficient funds warning #3645

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

kkosiorowska
Copy link
Contributor

@kkosiorowska kkosiorowska commented Oct 20, 2023

Testing Env

SUPPORT_THE_ISLAND_ON_TENDERLY=true

Latest build: extension-builds-3645 (as of Fri, 20 Oct 2023 14:06:50 GMT).

Comment on lines +592 to +598
if (
"annotation" in transactionRequest &&
transactionRequest.annotation !== undefined
) {
transactionRequest.annotation.warnings ??= []
transactionRequest.annotation.warnings.push("insufficient-funds")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't be pushing annotations anywhere other than the enrichment service…

We also unfortunately have this estimation handling duplicated here and below in populatePartialEIP1559TransactionRequest.

Will think about the best way to tie these together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants