(
client: TestClient<
TestClientMode,
Transport,
Chain,
Account | undefined,
false
>,
args: DeployContractParameters<abi, (typeof client)['chain'], Account>,
)
| 78 | } |
| 79 | |
| 80 | export async function deploy<const abi extends Abi | readonly unknown[]>( |
| 81 | client: TestClient< |
| 82 | TestClientMode, |
| 83 | Transport, |
| 84 | Chain, |
| 85 | Account | undefined, |
| 86 | false |
| 87 | >, |
| 88 | args: DeployContractParameters<abi, (typeof client)['chain'], Account>, |
| 89 | ) { |
| 90 | const hash = await deployContract(client, { |
| 91 | account: accounts[0].address, |
| 92 | ...args, |
| 93 | } as any) |
| 94 | await mine(client, { blocks: 1 }) |
| 95 | const { contractAddress } = await getTransactionReceipt(client, { |
| 96 | hash, |
| 97 | }) |
| 98 | return { contractAddress, hash } |
| 99 | } |
| 100 | |
| 101 | export async function deployBAYC() { |
| 102 | return deploy(client, { |
no test coverage detected