(subnetActorAddress, network)
| 82 | } |
| 83 | |
| 84 | async function readSubnetActor(subnetActorAddress, network) { |
| 85 | const subnetActorJsonPath = `${process.cwd()}/subnet.actor-${subnetActorAddress}.json` |
| 86 | if (fs.existsSync(subnetActorJsonPath)) { |
| 87 | const subnetActor = JSON.parse( |
| 88 | fs.readFileSync(subnetActorJsonPath).toString(), |
| 89 | ) |
| 90 | return subnetActor |
| 91 | } |
| 92 | const subnetRegistry = await getSubnetRegistry(network) |
| 93 | const deployments = { |
| 94 | SubnetActorDiamond: subnetActorAddress, |
| 95 | Facets: subnetRegistry.SubnetActorFacets, |
| 96 | } |
| 97 | return deployments |
| 98 | } |
| 99 | |
| 100 | async function saveSubnetActor( |
| 101 | deployments, |
no test coverage detected