duneanalytics / duneanalytics/evm.codes

Feature request: shaded leading zeros in stack

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
827
Forks
199
Avg merge
15m
Merged PRs (30d)
1

Description

Stack's values might be misleading due to up to 256 bit size

Humans are not able to easily recognize whether leading zeros are omitted.

see example of the Solidity's selector for Error(string):
https://www.evm.codes/playground?fork=shanghai&unit=Wei&codeType=Mnemonic&code='PUSH3%200x461bcd%5CnPUSH1%200xe5%5CnSHL'_

image

The selector should show 08c379a0...

Proposal:

add leading zeros, but shade them

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 locating the stack-value rendering in the interactive EVM view and inspect how values such as the Solidity Error(string) selector are displayed. Update the presentation so omitted leading zeros are shown with shading, then verify the selector displays 08c379a0... as proposed.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity, typescript
Domain
blockchain, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.