Skip to content

Conversation

@tejasbadadare
Copy link
Contributor

Summary

Sometimes when using --ratio, the amount to transfer can be a number with many decimals. web3.utils.toWei errors on these numbers with '[ethjs-unit] while converting number 0.0016499420763857226 to wei, too many decimal places'

Rationale

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 4:01am
7 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Skipped (Inspect) Jul 18, 2025 4:01am
developer-hub ⬜️ Skipped (Inspect) Jul 18, 2025 4:01am
entropy-debugger ⬜️ Skipped (Inspect) Jul 18, 2025 4:01am
entropy-explorer ⬜️ Skipped (Inspect) Jul 18, 2025 4:01am
insights ⬜️ Skipped (Inspect) Jul 18, 2025 4:01am
proposals ⬜️ Skipped (Inspect) Jul 18, 2025 4:01am
staking ⬜️ Skipped (Inspect) Jul 18, 2025 4:01am

@tejasbadadare tejasbadadare merged commit dc4fd5c into main Jul 18, 2025
11 checks passed
@tejasbadadare tejasbadadare deleted the tb/entropy-scripts/fix-decimal branch July 18, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants