Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

@akim-bow
Copy link
Contributor

No description provided.

Comment on lines 454 to 455
console.log(avmCallResult.callRequests, "call requiest");
console.log(avmCallResult.nextPeerPks, "call requiest");
Copy link
Contributor

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?

Copy link
Contributor Author

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> {
Copy link
Contributor

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
Copy link
Contributor

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)

Suggested change
srvDef.defaultServiceId != null
srvDef.defaultServiceId == null ? functionOverloadsWithoutDefaultServiceId : functionOverloadsWithDefaultServiceId

Copy link
Contributor

@shamsartem shamsartem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

e2e Run e2e workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants