Skip to content

Conversation

yogeshwar-bitgo
Copy link
Contributor

Ticket: WIN-6319

* @param network required to stringify addresses
* @return mapper function
*/
mapOutputToEntry(network: FlareNetwork): (Output) => Entry {

Check warning

Code scanning / CodeQL

Ineffective parameter type Warning

The parameter 'Output' has type 'any', but its name coincides with the
imported type Output
.

Copilot Autofix

AI 19 days 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.


Suggested changeset 1
modules/sdk-coin-flrp/src/lib/utils.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/modules/sdk-coin-flrp/src/lib/utils.ts b/modules/sdk-coin-flrp/src/lib/utils.ts
--- a/modules/sdk-coin-flrp/src/lib/utils.ts
+++ b/modules/sdk-coin-flrp/src/lib/utils.ts
@@ -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;
EOF
@@ -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;
Copilot is powered by AI and may make mistakes. Always verify output.
@yogeshwar-bitgo yogeshwar-bitgo force-pushed the WIN-6319 branch 6 times, most recently from 62a9914 to 683412d Compare August 29, 2025 05:14
@yogeshwar-bitgo yogeshwar-bitgo force-pushed the WIN-6319 branch 2 times, most recently from f65b8e3 to c0d22e8 Compare September 4, 2025 04:28
@yogeshwar-bitgo yogeshwar-bitgo marked this pull request as ready for review September 4, 2025 04:40
@yogeshwar-bitgo yogeshwar-bitgo requested review from a team as code owners September 4, 2025 04:40
@yogeshwar-bitgo yogeshwar-bitgo force-pushed the WIN-6319 branch 4 times, most recently from adcd34a to 105da59 Compare September 4, 2025 09:12
parasgarg-bitgo
parasgarg-bitgo previously approved these changes Sep 5, 2025
@yogeshwar-bitgo yogeshwar-bitgo merged commit 7147059 into master Sep 5, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants