Use const variable to reduce redundancy

This commit is contained in:
Jihoon Song
2024-07-03 18:05:11 +02:00
parent e301294687
commit 9d93a455a4

View File

@@ -32,10 +32,10 @@ describe("SafeSponsorEverythingPaymasterPlugin", () => {
const paymasterAddress = await paymaster.getAddress();
// Paymaster deposits.
await paymaster.deposit({ value: ethers.parseEther("1") })
await paymaster.deposit({ value: oneEther })
const recipient = ethers.Wallet.createRandom();
const transferAmount = ethers.parseEther("1");
const transferAmount = oneEther;
const dummySignature = await owner.signMessage("dummy sig");
// Deploy ecdsa plugin
@@ -66,7 +66,7 @@ describe("SafeSponsorEverythingPaymasterPlugin", () => {
await receiptOf(
admin.sendTransaction({
to: accountAddress,
value: ethers.parseEther("1"),
value: oneEther,
}),
);