Skip to content

Commit 1555cc0

Browse files
CedarMistaefhm
authored andcommitted
fixed lint in client/js
1 parent 6c05637 commit 1555cc0

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ subdirs = runtime clients integrations contracts
55
all:
66
@echo ...
77

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

1111
$(subdirs)::

clients/js/src/calldatapublickey.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,12 @@ export async function fetchRuntimePublicKeyByChainId(
111111
throw new Error('No fetch implementation found!');
112112
}
113113
const res = await fetchRuntimePublicKeyFromURL(defaultGateway, fetchImpl);
114-
if( ! res.result ) {
115-
throw new Error(`fetchRuntimePublicKeyByChainId failed, empty result in: ${JSON.stringify(res)}`);
114+
if (!res.result) {
115+
throw new Error(
116+
`fetchRuntimePublicKeyByChainId failed, empty result in: ${JSON.stringify(
117+
res,
118+
)}`,
119+
);
116120
}
117121
return toCallDataPublicKey(res.result, chainId);
118122
}

0 commit comments

Comments
 (0)