2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Make formatUnits options optional.

This commit is contained in:
Richard Moore 2018-07-22 20:05:45 -04:00
parent e3da92d1ee
commit 004fd7d37d
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -157,7 +157,7 @@ export function parseUnits(value: string, unitType?: string | number): BigNumber
return wei;
}
export function formatEther(wei: BigNumberish, options: any): string {
export function formatEther(wei: BigNumberish, options?: any): string {
return formatUnits(wei, 18, options);
}