Skip to content

Conversation

meeh0w
Copy link
Member

@meeh0w meeh0w commented Aug 28, 2025

Description

Adds the network fee widget for EVM transaction approval screens.

Testing

  1. Perform an EVM transaction (e.g. send some AVAX)
  2. Update the fee settings (either choose a preset or use the Custom button and modify as you like)
  3. Click on the success toast and verify the transaction used your gas settings on the explorer page

Screenshots:

EVM.Network.Fee.Widget.mov

Checklist for the author

  • I've covered new/modified business logic with Jest test cases.
  • I've tested the changes myself before sending it to code review and QA.

Comment on lines 11 to 23
useEffect(() => {
let isMounted = true;

getNetworkFee(network.caipId).then((newFee) => {
if (isMounted) {
setNetworkFee(newFee);
}
});

return () => {
isMounted = false;
};
}, [getNetworkFee, network]);
Copy link
Contributor

@bartosz-the-coder-at-avalabs bartosz-the-coder-at-avalabs Aug 28, 2025

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed all isMounted flags from apps/next, since the warning is not present anymore in React 18 and actually cancelling the promises would be a bigbig lift 🙌

@meeh0w meeh0w mentioned this pull request Aug 29, 2025
2 tasks
vvava
vvava previously approved these changes Sep 4, 2025
Copy link
Contributor

@vvava vvava left a comment

Choose a reason for hiding this comment

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

🦤

@meeh0w meeh0w merged commit ed32132 into main Sep 5, 2025
7 checks passed
@meeh0w meeh0w deleted the feat/ng-tx-evm-fees branch September 5, 2025 13:46
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.

4 participants