Skip to content

Commit

Permalink
fix: update paymaster label text (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romsters authored Oct 23, 2023
1 parent c86360f commit 3d6e273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/app/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@
"value": "Value",
"valueTooltip": "Amount of Ether being transferred from one address to another within a transaction.",
"fee": "Fee",
"paidByPaymaster": "Paid by paymaster",
"paidByPaymaster": "Paid by Paymaster",
"feeDetails": {
"moreDetails": "More Details",
"closeDetails": "Close Details",
"initial": "Initial:",
"refunded": "Refunded:",
"refunds": "Refunds:",
"whyRefunded": "Why I'm being refunded?",
"whyPaymasterRefunded": "Why paymaster is being refunded?",
"whyRefunded": "Why am I being refunded?",
"whyPaymasterRefunded": "Why is Paymaster being refunded?",
"whatIsPaymaster": "What is Paymaster?",
"paymaster": "Paymaster"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/app/tests/components/FeeData.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ describe("FeeToken", () => {
"https://era.zksync.io/docs/dev/developer-guides/transactions/fee-model.html#refunds"
);
expect(link?.getAttribute("target")).toBe("_blank");
expect(link?.textContent).toBe("Why I'm being refunded?");
expect(link?.textContent).toBe("Why am I being refunded?");
});
});

Expand All @@ -204,7 +204,7 @@ describe("FeeToken", () => {
feeData: feeDataPaymaster as FeeData,
},
});
expect(container.querySelector(".payed-by-paymaster-label")?.textContent).toBe("Paid by paymaster");
expect(container.querySelector(".payed-by-paymaster-label")?.textContent).toBe("Paid by Paymaster");
});

it("displays the refunds when expanded", async () => {
Expand Down Expand Up @@ -243,7 +243,7 @@ describe("FeeToken", () => {
"https://era.zksync.io/docs/dev/developer-guides/transactions/fee-model.html#refunds"
);
expect(refundedLink?.getAttribute("target")).toBe("_blank");
expect(refundedLink?.textContent).toBe("Why paymaster is being refunded?");
expect(refundedLink?.textContent).toBe("Why is Paymaster being refunded?");

const paymasterLink = container.querySelector(".paymaster-link");
expect(paymasterLink?.getAttribute("href")).toBe(
Expand Down

0 comments on commit 3d6e273

Please sign in to comment.