Skip to content

add missing JSON output support for erc20 decimals#13438

Merged
onbjerg merged 1 commit intofoundry-rs:masterfrom
DanielGuupta:JSON
Feb 13, 2026
Merged

add missing JSON output support for erc20 decimals#13438
onbjerg merged 1 commit intofoundry-rs:masterfrom
DanielGuupta:JSON

Conversation

@DanielGuupta
Copy link
Contributor

Motivation

cast erc20 decimals was the only query subcommand not respecting --json flag, while all other subcommands (balance, allowance, name, symbol, total-supply) already handle it.

Solution

Add the missing shell::is_json() check to keep it consistent.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@onbjerg onbjerg enabled auto-merge (squash) February 13, 2026 19:26
@onbjerg onbjerg merged commit 81678d6 into foundry-rs:master Feb 13, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants