Repository navigation
Open
Description
These were TODO / "for now" / hack comments. The comment purge deleted them (policy: docs/adr/0001-no-code-comments.md), so they are tracked here instead. Each link points at the original comment on b3133cffff.
Likely live bugs (confirmed in source):
- CreatorNode._makeRequestV2 calls
this.storageNodeSelector.getNodeswith no guard although the selector is optional; a failed request then throws a TypeError that hides the real error and skips the storage-node fallback. (libs/src/services/creatorNode/CreatorNode.ts#L447) - Web3Manager.sendTransaction never falls back to identity when the discovery relay returns null; parseLogs dereferences
response!.receiptand throws. (libs/src/services/web3Manager/Web3Manager.ts#L279)
Rest:
- Generate a unique nonce per transferToSolana call instead of the hardcoded value 2. (libs/scripts/communityRewards/transferCommunityRewardsToSolana.js#L73)
- Remove the legacy non-dir-CID image fallback in File.fetchCIDInternal once no entities use legacy image formats. (libs/src/api/File.ts#L160)
- In Rewards.submitAndEvaluate, stop before the evaluate phase when the per-attestation retry after sender collisions fails. (libs/src/api/Rewards.ts#L240)
- Add health/latency checks and allow/block lists to ServiceProvider.autoSelectStorageV2Nodes, or delete the TODO if libs is frozen. (libs/src/api/ServiceProvider.ts#L41)
- Remove currentWallet/currentUserId from AudiusLibs once the SDK migration no longer needs them. (libs/src/AudiusLibs.ts#L338)
- Remove currentWallet/currentUserId from NativeAudiusLibs once the SDK migration no longer needs them. (libs/src/NativeAudiusLibs.ts#L314)
- Add early exit to promiseFight so ServiceSelection tests need no short requestTimeout workaround. (libs/src/service-selection/ServiceSelection.test.ts#L87)
- Give CreatorNode._makeRequestV2 real error handling and request IDs, or delete the TODO if libs is frozen. (libs/src/services/creatorNode/CreatorNode.ts#L441)
- Make DiscoveryProvider._makeRequest treat 404 as non-retryable so getTracksByHandleAndSlug can drop its retry=false workaround (v1 returns 404 instead of an empty array). (libs/src/services/discoveryProvider/DiscoveryProvider.ts#L370)
- Replace the backwards traversal of on-chain versions with direct version validation, or remove with libs discovery selection. (libs/src/services/discoveryProvider/DiscoveryProviderSelection.ts#L284)
- Remove the extra parseInt calls and fix the as unknown as string casts in ServiceProviderFactoryClient. (libs/src/services/ethContracts/ServiceProviderFactoryClient.ts#L1)
- Remove getServiceProviderInfo and migrate callers to getServiceEndpointInfo. (libs/src/services/ethContracts/ServiceProviderFactoryClient.ts#L506)
- Return the endpoint info directly once callers stop expecting an array. (libs/src/services/ethContracts/ServiceProviderFactoryClient.ts#L582)
- Rewrite or delete the outdated Hedgehog constructor comment. (libs/src/services/hedgehog/Hedgehog.ts#L25)
- AUD-1217: attest Solana and POA challenges separately instead of filtering Solana challenges out of highestBlock. (libs/src/services/solana/rewardsAttester.ts#L607)
- Give prepareInstructionForRelay an accurate return type instead of faking TransactionInstruction. (libs/src/services/solana/SolanaUtils.ts#L32)
- PAY-2252: split extraAmount correctly across all recipients in getPurchaseContentWithPaymentRouterInstructions. (libs/src/services/solana/SolanaWeb3Manager.ts#L696)
- Remove duplicated legacy/v0 transaction building in TransactionHandler once types allow a shared path. (libs/src/services/solana/transactionHandler.ts#L229)
- Use checksummed addresses (EIP-55) and fix the Wallet type so the ts-expect-error can go. (libs/src/services/web3Manager/Web3Manager.ts#L155)
- Fix the decodeLogs return type (DecodedLog vs DecodedLog[]) instead of casting. (libs/src/services/web3Manager/Web3Manager.ts#L344)
- Remove the vendored raiden provider code from Web3Manager. (libs/src/services/web3Manager/Web3Manager.ts#L362)
- Type the mocha this context properly instead of @ts-ignore in network.test.ts. (libs/src/utils/network.test.ts#L69)
- Remove the is_creator field from the libs UserMetadata type. (libs/src/utils/types.ts#L58)
- Remove currentWallet/currentUserId from WebAudiusLibs once the SDK migration no longer needs them. (libs/src/WebAudiusLibs.ts#L335)
- Add assertions to the PlaylistFactoryClient tests or delete them with the removed contracts. (libs/tests/playlistClientTest.js#L38)
Metadata
Metadata
Assignees
Labels
No labels
Activity
chore: purge comments from all remaining packages (#14811)
chore: purge code comments repo-wide, add comment ratchet (#14796)