OpenZeppelin / OpenZeppelin/compact-tools

dev: investigating error `CompactError: Error: ran out of gas budget`

Open
#63 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
4
Forks
5
Avg merge
15h 28m
Merged PRs (30d)
31

Description

      costModel: CostModel.initialCostModel(),
      gasLimit: emptyRunningCost()

I think we can use this API for the default value: https://github.com/midnightntwrk/compact-export/blob/41de8595c568de8dfafc9e80bec60630c5417b00/runtime/src/circuit-context.ts#L159

Originally posted by @0xisk in #62

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked runtime/src/circuit-context.ts entry point around line 159 and trace how the default costModel and gasLimit are selected. Reproduce the “ran out of gas budget” error, then confirm the investigation identifies a concrete default-value change and that the error no longer occurs in the affected flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.