Skip to content

fix: closePool estimation revert says "reverted on-chain" and drops the revert data #2417

Closed

Description

@thiras

Problem

close_and_forget (crates/cli/src/commands/pool.rs) handles a send() error that carries revert data with:

closePool reverted on-chain for pool {pool_id}

This error comes from gas estimation. Nothing was broadcast, and nothing is on-chain. The message also discards the revert data that e.as_revert_data() holds, so the operator cannot see which PaymentPool error fired.

reclaim_and_forget shares reclaim_reverted between its estimation-time and receipt-time arms, so it has the same "on-chain" wording for the estimation case.

Fix

  • Word the estimation-time arms as a pre-flight rejection, for example closePool would revert for pool {pool_id} (rejected at gas estimation; nothing was sent).
  • Decode the revert data against the PaymentPool errors and include the error name.

Checks

  • A mocked-provider test where eth_sendTransaction answers with revert data: the error does not say "on-chain" and names the decoded error.

Activity

  1. self-assigned this
    on Oct 10, 2026
  2. added
    kind:bug
    area:cli
    prio:low
    on Oct 10, 2026
  3. assigned and unassigned on Oct 10, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 12, 2026
  5. moved this from In progress to Done in deCDNon Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:bugprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions