Conversation
| http, | ||
| } from 'starkweb'; | ||
| import { sepolia } from 'starkweb/chains'; | ||
| import { getStarknetId, getStarknetIdName } from 'starkweb/actions'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 12 months ago
To fix the problem, we need to remove the unused import getStarknetIdName from the import statement on line 13. This will clean up the code and remove any confusion about unused imports.
- Remove the unused import
getStarknetIdNamefrom the import statement. - Ensure that the remaining code functionality is not affected by this change.
| @@ -12,3 +12,3 @@ | ||
| } from 'starkweb'; | ||
| import { getStarknetId, getStarknetIdName } from 'starkweb/actions'; | ||
| import { getStarknetId } from 'starkweb/actions'; | ||
| import { mainnet, sepolia } from 'starkweb/chains'; |
| } from 'starkweb'; | ||
| import { sepolia } from 'starkweb/chains'; | ||
| import { getStarknetId, getStarknetIdName } from 'starkweb/actions'; | ||
| import { mainnet, sepolia } from 'starkweb/chains'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 12 months ago
To fix the problem, we need to remove the unused import sepolia from the import statement. This will clean up the code and remove any confusion about the usage of sepolia. The change should be made in the file app/starkweb-client/src/index.ts on line 14.
| @@ -13,3 +13,3 @@ | ||
| import { getStarknetId, getStarknetIdName } from 'starkweb/actions'; | ||
| import { mainnet, sepolia } from 'starkweb/chains'; | ||
| import { mainnet } from 'starkweb/chains'; | ||
|
|
This PR allows readContracts to make a batch single RPC call