Skip to content

[Bug]: Intrinsic Gas Too Low - MM can't estimate gas on 11.7.0 for Viem #22359

@mpeyfuss

Description

@mpeyfuss

Describe the bug

When I go to deploy a contract from our dashboard, MM properly recognizes that I am going to deploy a contract. On 11.6.2, if I submit the transaction, gas is properly estimated. On 11.7.0, the transaction interface looks a bit different than I remember and when I submit the transaction, it fails with error code -32603 "Intrinsic gas too low: needed 81164, allowed 21000".

Expected behavior

I expect that gas is estimated properly and the transaction succeeds. This seems to only affect interactions built with Viem and not those built with Ethers. I'll be submitting an issue with Viem as well, but other wallet clients and 11.6.2 of MM work with Viem so it seems to be MM 1.7.0 related.

Screenshots/Recordings

image

image

Steps to reproduce

  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. See that tx failed in MM
  7. Open console to inspect the failure

Error messages or log output

No response

Version

11.7.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

Pretty critical as our users can't deploy contracts on the latest MM version

Metadata

Metadata

Assignees

Labels

Sev2-normalNormal severity; minor loss of service or inconvenience.external-contributorregression-prod-11.7.0Regression bug that was found in production in release 11.7.0release-11.9.0Issue or pull request that will be included in release 11.9.0team-confirmations-system-deprecatedDEPRECATED: please use "team-confirmations" insteadtype-bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions