You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: closePool estimation revert says "reverted on-chain" and drops the revert data #2417
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