Skip to content

fix(docs): contradictory description of send in Subcurrency Example#16735

Open
thijmau wants to merge 1 commit into
argotorg:developfrom
thijmau:docs/fix-subcurrency-evaluation-logic
Open

fix(docs): contradictory description of send in Subcurrency Example#16735
thijmau wants to merge 1 commit into
argotorg:developfrom
thijmau:docs/fix-subcurrency-evaluation-logic

Conversation

@thijmau
Copy link
Copy Markdown

@thijmau thijmau commented May 18, 2026

Description

Checklist

AI Disclosure

  • No AI tools were used
  • AI tools were used (details below)

Claude (Anthropic) was used for formatting the original issue body of #16730 and for tidying up the commit message. All technical content was verified by me.

Closes #16730

The paragraph described an `if` condition evaluating to true on
insufficient balance, which contradicts the `require(amount <= balance, ...)`
shown in the code. The wording was left over from an earlier version of
the example that used an explicit `if`/`revert` form.

Rewrite to describe the `require` condition directly: it evaluates to
false when the sender has insufficient funds, triggering the revert with
the `InsufficientBalance` error.

Signed-off-by: Thijmen Maus <hi@thijmau.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: send description in Subcurrency Example contradicts the require condition

1 participant