Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Generated newCtorFromCode code parameter type is inaccurate #786

Open
nikitayutanov opened this issue Jan 22, 2025 · 0 comments
Open

Generated newCtorFromCode code parameter type is inaccurate #786

nikitayutanov opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
javascript Pull requests that update Javascript code

Comments

@nikitayutanov
Copy link
Member

Problem

TransactionBuilder constructor is expecting Uint8Array | ArrayBufferLike | HexString, but generated type for newCtorFromCode code parameter is Uint8Array | Buffer.

Steps

  1. Generate program using sails-js-cli
  2. IntelliSense in newCtorFromCode method will complain - No overload matches this call

Possible Solution

Edit types in generateProgramConstructor to match types in TransactionBuilder.

Notes

No response

Relevant Log Output

No response

@nikitayutanov nikitayutanov added the javascript Pull requests that update Javascript code label Jan 22, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
javascript Pull requests that update Javascript code
Projects
None yet
Development

No branches or pull requests

2 participants