-
-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix block value calculation in
produceBlockV3
(#6207)
Fix block value calculation
- Loading branch information
Showing
4 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const ETH_TO_GWEI = BigInt(10 ** 9); | ||
export const GWEI_TO_WEI = BigInt(10 ** 9); | ||
export const ETH_TO_WEI = ETH_TO_GWEI * GWEI_TO_WEI; | ||
|
||
type EthNumeric = bigint; | ||
|
||
/** | ||
* Convert gwei to wei. | ||
*/ | ||
export function gweiToWei(gwei: EthNumeric): EthNumeric { | ||
return gwei * GWEI_TO_WEI; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters