Skip to content

Conversation

@shubham-damkondwar
Copy link
Contributor

HBAREVM_EXPLORER_API_KEY,
DOGEOS_EXPLORER_API_KEY
DOGEOS_EXPLORER_API_KEY,
MORPH_EXPLORER_API_KEY

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable MORPH_EXPLORER_API_KEY.

Copilot Autofix

AI 2 days ago

In general, to fix an unused variable error you either (a) remove the unused variable, or (b) start actually using it if it was intended to be used. Since we cannot see any use of MORPH_EXPLORER_API_KEY and must avoid changing behavior, the minimal, safest fix is to stop destructuring it from process.env.

Concretely, in hardhat.config.ts, adjust the environment variable destructuring block (lines 10–59) to remove MORPH_EXPLORER_API_KEY from the list. No other code changes are required, and no imports or new symbols are needed. This preserves existing behavior and simply avoids creating an unused binding.


Suggested changeset 1
hardhat.config.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/hardhat.config.ts b/hardhat.config.ts
--- a/hardhat.config.ts
+++ b/hardhat.config.ts
@@ -54,8 +54,7 @@
   FLOW_EXPLORER_API_KEY,
   MEGAETH_EXPLORER_API_KEY,
   HBAREVM_EXPLORER_API_KEY,
-  DOGEOS_EXPLORER_API_KEY,
-  MORPH_EXPLORER_API_KEY
+  DOGEOS_EXPLORER_API_KEY
 } = process.env;
 
 const PLACEHOLDER_KEY: string =
EOF
@@ -54,8 +54,7 @@
FLOW_EXPLORER_API_KEY,
MEGAETH_EXPLORER_API_KEY,
HBAREVM_EXPLORER_API_KEY,
DOGEOS_EXPLORER_API_KEY,
MORPH_EXPLORER_API_KEY
DOGEOS_EXPLORER_API_KEY
} = process.env;

const PLACEHOLDER_KEY: string =
Copilot is powered by AI and may make mistakes. Always verify output.
@shubham-damkondwar
Copy link
Contributor Author

shubham-damkondwar commented Dec 30, 2025

Morph Testnet
image
image
image

{
"walletImplementation": "0x40faE09C7Aa61d184Eb5494024eE7eBa7ddC74BE",
"walletFactory": "0x9668eFf52f633A1456F72B7a065eBC2E99A80779",
"forwarderImplementation": "0xa5d2B5440AC2e16930d09C5bA5237a70e72019a9",
"forwarderFactory": "0x0D6c4Be43cDd5a93Cf38726C153e6C677aC5deB5",
"batcher": "0x9887c3fd78F5a297BDeAA02D5718008620DcB9CA"
}

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.

2 participants