-
Notifications
You must be signed in to change notification settings - Fork 300
feat(sdk-coin-flrp): added keypair and utils #6809
New issue
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
Conversation
| * @param network required to stringify addresses | ||
| * @return mapper function | ||
| */ | ||
| mapOutputToEntry(network: FlareNetwork): (Output) => Entry { |
Check warning
Code scanning / CodeQL
Ineffective parameter type Warning
imported type Output
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 months ago
To fix this error, change the parameter in the arrow function signature from (Output) => Entry to (output: Output) => Entry. This provides both a parameter name and correct type annotation, restoring type checking and completeness.
Locate line 320 in modules/sdk-coin-flrp/src/lib/utils.ts and apply this fix directly. No new imports or definitions are necessary.
-
Copy modified line R320
| @@ -317,7 +317,7 @@ | ||
| * @param network required to stringify addresses | ||
| * @return mapper function | ||
| */ | ||
| mapOutputToEntry(network: FlareNetwork): (Output) => Entry { | ||
| mapOutputToEntry(network: FlareNetwork): (output: Output) => Entry { | ||
| return (output: Output) => { | ||
| if (this.isTransferableOutput(output)) { | ||
| const transferableOutput = output as TransferableOutput; |
62a9914 to
683412d
Compare
f65b8e3 to
c0d22e8
Compare
c0d22e8 to
9c83b25
Compare
9c83b25 to
a36d393
Compare
adcd34a to
105da59
Compare
105da59 to
82fadf5
Compare
82fadf5 to
71846e7
Compare
Ticket: WIN-6319