diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 5740f4486a..e34be4ddd0 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -12,11 +12,13 @@ "playwright:test:wallet": "playwright test --grep 'connect-qr.spec.ts|wallet.spec.ts'", "playwright:test:email": "playwright test --grep 'email.spec.ts'", "playwright:test:siwe": "playwright test --grep siwe.spec.ts", + "playwright:test:sa": "playwright test --grep smart-account.spec.ts", "playwright:test:canary": "playwright test --retries=0 --grep canary.spec.ts --project='Desktop Chrome/wagmi'", "playwright:debug": "npm run playwright:test -- --debug", "playwright:debug:wallet": "npm run playwright:test:wallet -- --debug", "playwright:debug:email": "npm run playwright:test:email -- --debug", "playwright:debug:siwe": "npm run playwright:test:siwe -- --debug", + "playwright:debug:sa": "npm run playwright:test:sa -- --debug", "playwright:debug:canary": "npm run playwright:test:canary -- --debug" }, "dependencies": { diff --git a/apps/laboratory/src/components/Ethers/EthersTransactionTest.tsx b/apps/laboratory/src/components/Ethers/EthersTransactionTest.tsx index 0fe9e7cbf5..fe3c347d96 100644 --- a/apps/laboratory/src/components/Ethers/EthersTransactionTest.tsx +++ b/apps/laboratory/src/components/Ethers/EthersTransactionTest.tsx @@ -1,7 +1,7 @@ import { Button, useToast, Stack, Link, Text, Spacer } from '@chakra-ui/react' import { useWeb3ModalAccount, useWeb3ModalProvider } from '@web3modal/ethers/react' import { BrowserProvider, JsonRpcSigner, ethers } from 'ethers' -import { sepolia } from '../../utils/ChainsUtil' +import { sepolia, optimism } from '../../utils/ChainsUtil' import { useState } from 'react' import { vitalikEthAddress } from '../../utils/DataUtil' @@ -21,9 +21,7 @@ export function EthersTransactionTest() { const signer = new JsonRpcSigner(provider, address) const tx = await signer.sendTransaction({ to: vitalikEthAddress, - value: ethers.parseUnits('0.0001', 'gwei'), - maxFeePerGas: ethers.parseUnits('200', 'gwei'), - maxPriorityFeePerGas: ethers.parseUnits('200', 'gwei') + value: ethers.parseUnits('0.0001', 'gwei') }) toast({ title: 'Succcess', description: tx.hash, status: 'success', isClosable: true }) } catch { @@ -38,7 +36,9 @@ export function EthersTransactionTest() { } } - return chainId === sepolia.chainId && address ? ( + const allowedChains = [sepolia.chainId, optimism.chainId] + + return allowedChains.includes(Number(chainId)) && address ? ( - - - setAddress(e.target.value)} value={address} /> - setAmount(e.target.value)} - value={amount} - type="number" - />