-
Notifications
You must be signed in to change notification settings - Fork 26
chore: Review fixes at #378 #383
Conversation
| console.log(avmCallResult.callRequests, "call requiest"); | ||
| console.log(avmCallResult.nextPeerPks, "call requiest"); |
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.
maybe debug log is better if you want to log something?
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.
thanks, i forgot to remove them
| async sign({ | ||
| args: [data], | ||
| context, | ||
| }: MethodArgs<[number[]]>): Promise<SignReturnType> { |
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.
I think that's pretty nice to work with now, thanks. I would only suggest to rename this to maybe ServiceFnArgs since these are supposed to be built-in service functions
| // This wrong type comes from aqua team. We need to discuss fix with them | ||
| // eslint-disable-next-line @typescript-eslint/consistent-type-assertions | ||
| (srvDef.defaultServiceId as DefaultServiceId).s_Some__f_value != null | ||
| srvDef.defaultServiceId != null |
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.
I think it's tiny bit simpler if negation is used as rarely as possible (except for maybe some early returns or errors)
| srvDef.defaultServiceId != null | |
| srvDef.defaultServiceId == null ? functionOverloadsWithoutDefaultServiceId : functionOverloadsWithDefaultServiceId |
shamsartem
left a comment
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.
Nice
No description provided.