fix: show current postage stamp price per block (#348)

This commit is contained in:
Vojtech Simetka
2022-04-24 21:40:31 +05:00
committed by GitHub
parent 0a69409077
commit 906a457ae5
+3 -1
View File
@@ -52,7 +52,9 @@ export function PostageStampCreation({ onFinished }: Props): ReactElement {
const pricePerBlock = Number.parseInt(chainState.currentPrice, 10)
return `${secondsToTimeString(convertAmountToSeconds(amount, pricePerBlock))} (with price of 0 per block)`
return `${secondsToTimeString(
convertAmountToSeconds(amount, pricePerBlock),
)} (with price of ${pricePerBlock.toFixed(0)} per block)`
}
function getPrice(depth: number, amount: bigint): string {