Skip to content

Commit 36c99a6

Browse files
committed
cleanup
1 parent ef214bc commit 36c99a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/dashboard/src/components/contract-components/fetchPublishedContractsFromDeploy.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ export async function fetchPublishedContractsFromDeploy(options: {
3737
// TODO: ContractPublisher should handle multiple metadata uri for a published version
3838
if (publishURIs.length === 0 && (await isZkSyncChain(contract.chain))) {
3939
try {
40-
const deployMetadata = await download({
40+
const res = await download({
4141
uri: contractUri,
4242
client,
43-
}).then((res) => res.json() as unknown as ZkSolcMetadata);
43+
});
44+
45+
const deployMetadata = (await res.json()) as ZkSolcMetadata;
4446

4547
const contractId = Object.values(
4648
deployMetadata.source_metadata.settings.compilationTarget,

0 commit comments

Comments
 (0)