Skip to content

Commit

Permalink
fixed lint in client/js
Browse files Browse the repository at this point in the history
  • Loading branch information
CedarMist committed Jun 27, 2024
1 parent d57f50e commit 5125cf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ subdirs = runtime clients integrations contracts
all:
@echo ...

clean distclean build::
clean distclean build lint::
for sd in $(subdirs); do $(MAKE) -C $$sd $@; done

$(subdirs)::
Expand Down
8 changes: 6 additions & 2 deletions clients/js/src/calldatapublickey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ export async function fetchRuntimePublicKeyByChainId(
throw new Error('No fetch implementation found!');
}
const res = await fetchRuntimePublicKeyFromURL(defaultGateway, fetchImpl);
if( ! res.result ) {
throw new Error(`fetchRuntimePublicKeyByChainId failed, empty result in: ${JSON.stringify(res)}`);
if (!res.result) {
throw new Error(
`fetchRuntimePublicKeyByChainId failed, empty result in: ${JSON.stringify(
res,
)}`,
);
}
return toCallDataPublicKey(res.result, chainId);
}
Expand Down

0 comments on commit 5125cf5

Please sign in to comment.