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

Conversation

@coder11
Copy link
Contributor

@coder11 coder11 commented Sep 11, 2022

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 11, 2022

FluenceJS version is 0.25.0-new-marine-avm-interface-e9dd423-22-1

To install it run:

npm login --registry https://npm.fluence.dev
npm i @fluencelabs/fluence@0.25.0-new-marine-avm-interface-e9dd423-22-1 --registry=https://npm.fluence.dev

@coder11 coder11 requested a review from shamsartem September 12, 2022 07:44
Comment on lines +622 to +623
avmCallResult = e instanceof Error ? e : new Error((e as any).toString());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

not critical of course, but I think there is no need for a separate newData variable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was left intentionally to show what is being swapped with what. Otherwise is hard to track what is data, prevdata and newdata

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah. kind of agree

@coder11 coder11 requested a review from shamsartem September 12, 2022 10:15
return {
retCode: ResultCodes.success,
result: result as JSONValue,
};
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 in the furture we should get rid of the typecasts because who knows what data can be sent by bad actors - I think everything should be checked and acted apon appropriatly instead of just failing

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.

Thanks for the work!
Not sure, if I understand everything correctly, but the code itself seems fine

@coder11 coder11 merged commit 3d02c67 into master Sep 12, 2022
@coder11 coder11 deleted the new-marine-avm-interface branch September 12, 2022 10:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants