From 88f3d3fa472a85736265c6ad13b78f536ae7efdd Mon Sep 17 00:00:00 2001 From: Brawn Date: Sat, 25 Jan 2025 22:52:34 +0300 Subject: [PATCH] fix: Fix typo in "demoniation" to "denomination" Update calculate-costs.ts --- docs/snippets/erc20-paymaster/calculate-costs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snippets/erc20-paymaster/calculate-costs.ts b/docs/snippets/erc20-paymaster/calculate-costs.ts index 82dea69e..8c6f147e 100644 --- a/docs/snippets/erc20-paymaster/calculate-costs.ts +++ b/docs/snippets/erc20-paymaster/calculate-costs.ts @@ -94,10 +94,10 @@ const userOperationMaxCost = userOperationMaxGas * op.maxFeePerGas // [!endregion calculateMaxCost] // [!region calculateCostInToken] -// represents the userOperation's max cost in demoniation of wei +// represents the userOperation's max cost in denomination of wei const maxCostInWei = userOperationMaxCost + postOpGas * op.maxFeePerGas -// represents the userOperation's max cost in token demoniation (wei) +// represents the userOperation's max cost in token denomination (wei) const maxCostInTokenRaw = (maxCostInWei * exchangeRate) / BigInt(1e18) // represents the userOperation's max cost in token (human readable format)