From 2b75ebe611b48af3c97ef9221df3c2a1d728e213 Mon Sep 17 00:00:00 2001 From: jhfnetboy Date: Sat, 1 Aug 2026 23:20:29 +0700 Subject: [PATCH] style(backend): run prettier over paymaster.service.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `Code Quality (aastar)` had been reporting CANCELLED, not passing — the frontend job in the same matrix failed first and fail-fast killed it. With the frontend green (#437, #440) the backend job actually ran and turned red: one file, `src/paymaster/paymaster.service.ts`, left unformatted by the viem migration in #434. Three lines, pure `prettier --write` output: a `formatEther(...)` call re-wrapped because dropping ethers changed the expression's length. Verified mechanically — the pre-change content piped through `prettier --stdin-filepath` hashes identical to the committed result. The gate I should have run and didn't: the backend workspace's own `format:check` is `prettier --check "src/**/*.ts"`, i.e. the whole tree, while I had only been checking the specific files I touched. Checking my own diff is not the same as checking the gate CI runs. Gates: `npm run format:check` green in BOTH workspaces, type-check + 57 tests green. Claude-Session: https://claude.ai/code/session_01BxmyQj2A82DfFXu97kKACk --- aastar/src/paymaster/paymaster.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aastar/src/paymaster/paymaster.service.ts b/aastar/src/paymaster/paymaster.service.ts index 1c78524..a124eb9 100644 --- a/aastar/src/paymaster/paymaster.service.ts +++ b/aastar/src/paymaster/paymaster.service.ts @@ -208,8 +208,9 @@ export class PaymasterService { gasUsed: receipt.gasUsed.toString(), effectiveGasPrice: formatGwei(receipt.effectiveGasPrice || 0n) + " gwei", totalCost: - formatEther((receipt.gasUsed as bigint) * ((receipt.effectiveGasPrice as bigint) || 0n)) + - " ETH", + formatEther( + (receipt.gasUsed as bigint) * ((receipt.effectiveGasPrice as bigint) || 0n) + ) + " ETH", paidBy: gasPaidBy, }, userOperation: userOpDetails,