Skip to content

Fix use estimate gas instead of fixed gas#3694

Merged
vinistevam merged 3 commits intomainfrom
fix-use-estimate-gas-instead-fixed
Dec 21, 2023
Merged

Fix use estimate gas instead of fixed gas#3694
vinistevam merged 3 commits intomainfrom
fix-use-estimate-gas-instead-fixed

Conversation

@vinistevam
Copy link
Copy Markdown
Contributor

Explanation

Fix following the full release of the core TransactionController in the extension:

  • Change to use estimate gas instead of fixed gas (21k) when a contract is deployed and the gas is not specified.

References

Changelog

@metamask/transaction-controller

  • FIXED: Fix use estimate gas when to property is not provided.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@vinistevam vinistevam requested a review from a team as a code owner December 21, 2023 14:05
@vinistevam vinistevam merged commit c21235f into main Dec 21, 2023
@vinistevam vinistevam deleted the fix-use-estimate-gas-instead-fixed branch December 21, 2023 16:05
vinistevam added a commit to MetaMask/metamask-extension that referenced this pull request Jan 10, 2024
## **Description**
Bump transaction controller to:
- Fix to properly estimate the gas instead of using a fixed gas when
deploying a contract without specifying the `gas`.

See [related core PR](MetaMask/core#3694).

## **Related issues**

Fixes: #22359

## **Manual testing steps**

- Transaction regression

**Scenario of the error**
1. Go to
https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_deploying-contracts
2. Wait for the example to build
3. Connect MM
4. Click deploy
5. Submit tx
6. Contract should deploy successfully
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