(abi, bytecode)
| 3 | import { Contract, ContractFactory, EventLog, isError, Typed } from "../index.js"; |
| 4 | setupProviders(); |
| 5 | async function deploy(abi, bytecode) { |
| 6 | const provider = getDevProvider(); |
| 7 | const signer = await provider.getSigner(0); |
| 8 | const factory = new ContractFactory(abi, bytecode, signer); |
| 9 | const contract = await factory.deploy(); |
| 10 | const addr = await contract.getAddress(); |
| 11 | await contract.waitForDeployment(); |
| 12 | return { |
| 13 | contract: new Contract(addr, abi, provider), |
| 14 | contractSigner: new Contract(addr, abi, signer), |
| 15 | }; |
| 16 | } |
| 17 | describe("Test Contract", function () { |
| 18 | const abi = [ |
| 19 | "error CustomError1(uint256 code, string message)", |
no test coverage detected