We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
near-api-js
This cast in the constructor is misleading and wrong:
near-api-js/packages/transactions/src/action_creators.ts
Lines 98 to 120 in 480fe81
The unit tests call this constructor with arguments defined via Buffer.from which is an "object"
The constructor takes object OR Unit8Array and casts to Uint8Array while the actual contents are never Uint8Array.
No response
Try and construct an example in the tests that are actually Uint8Array to demonstrate to end users how its expected to look.
Expect that the Type declaration for these arguments is actually something people use.
This form is dumb.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prerequisites
near-api-js
.Description
This cast in the constructor is misleading and wrong:
near-api-js/packages/transactions/src/action_creators.ts
Lines 98 to 120 in 480fe81
The unit tests call this constructor with arguments defined via Buffer.from which is an "object"
The constructor takes object OR Unit8Array and casts to Uint8Array while the actual contents are never Uint8Array.
Reproducible demo
No response
Steps to reproduce
Try and construct an example in the tests that are actually Uint8Array to demonstrate to end users how its expected to look.
Expected behavior
Expect that the Type declaration for these arguments is actually something people use.
Actual behavior
This form is dumb.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: