Skip to content

fix: Fix type error in balance calculation#14741

Closed
zkpepe wants to merge 1 commit intoethereum-optimism:developfrom
zkpepe:patch-1
Closed

fix: Fix type error in balance calculation#14741
zkpepe wants to merge 1 commit intoethereum-optimism:developfrom
zkpepe:patch-1

Conversation

@zkpepe
Copy link
Copy Markdown

@zkpepe zkpepe commented Mar 9, 2025

Description:
Fixed an issue where a float64 value was passed to big.NewInt(). Instead of 0.5 * constants.ETH, I now use division by 2 with big.Int. This resolves the compiler error, and the balance calculation works correctly.

Tests:
Tested the updated calculation and verified that the balance is correctly computed without any type errors.

@zkpepe zkpepe requested a review from a team as a code owner March 9, 2025 17:45
@zkpepe zkpepe requested a review from bitwiseguy March 9, 2025 17:45
@opgitgovernance opgitgovernance added the S-stale Status: Will be closed unless there is activity label Mar 24, 2025
@opgitgovernance
Copy link
Copy Markdown
Contributor

This pr has been automatically marked as stale and will be closed in 5 days if no updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-stale Status: Will be closed unless there is activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants