-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refine error handling #91
base: main
Are you sure you want to change the base?
Conversation
…types ZKWAS-235: proof submit mode types
* add batch proof types * add initial types and query api * paginated result * update types for metadata + auto submit * refine type * export * fix enum export
* add prooftracker/batchverify * export * update * debug * try flatten * send tx * update types * update type for batchverify, update key names * fix exports
* update readme and interfaces * readme * rm dupe
* update types * add chain id to query * auto submit networks in config * metadata type for batch data
* rework metadata into fields * image interface update * update
* update readme * update
Merge auto sumbit feature into main for helper
* add reduced task * add user addr * separate endpoint * rename
add import assertions to mjs
Fix the issue that react cannot use import <JSON> from <json file> assert { type: json} It is because after node version 17, node force the type checking if import is for json file directly. So if we start node serivce via node command directly, we need add this "assert assert { type: json}" feature React is still using old node version and react in fact do not care whether we have it or not. However, we are using typescript. Typescripts only suppor this new feature after 5.x version React's react-scripts module haven't support 5.x version. So we cannot change to use new 5.x version. So we change to string.
* stats update * query update * endpoint name * fix type
* update load file for nodejs env * use buffer * try with md5 from uint8array * fix sig with initial context * add examples and update readme
* update type names * remove * naming updates * fix verify addr
* ZKWAS-301 & ZKWAS-304: Update inteface for node list improvements (#86) * ZKWAS-318: added endpoint for setting rest server maintenance mode (#88) --------- Co-authored-by: Oscar Downing <[email protected]>
@@ -28,9 +28,6 @@ export class ZkWasmServiceEndpoint { | |||
); | |||
return response.data; | |||
} catch (e: any) { | |||
if (this.enable_logs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if internal log affect user, I suggest change the default of enable_logs to false instead of remove them.
This is debug purpose so we can just set enable_logs to false when create the ZkWasmServiceEndpoint.
But as we internally use it so client's may not be able to turn off it.
Thus I suggest change the default to false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also need change the enable_logs default in ZkWasmServiceHelper
The commit removes the backtrace. This is the result of
bash publish.sh
: