MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / waitTx

Function waitTx

kms/auth-eth/hardhat.config.ts:77–80  ·  view source on GitHub ↗
(tx: any)

Source from the content-addressed store, hash-verified

75const KMS_CONTRACT_ADDRESS = process.env.KMS_CONTRACT_ADDRESS || "0x59E4a36B01a87fD9D1A4C12377253FE9a7b018Ba";
76
77async function waitTx(tx: any) {
78 console.log(`Waiting for transaction ${tx.hash} to be confirmed...`);
79 return await tx.wait();
80}
81
82async function getKmsContract(ethers: any) {
83 return await ethers.getContractAt("DstackKms", KMS_CONTRACT_ADDRESS);

Callers 1

hardhat.config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected