Skip to content

chore: fix typos across codebase#3195

Merged
QuantumExplorer merged 4 commits intov3.1-devfrom
chore/fix-typos
Mar 6, 2026
Merged

chore: fix typos across codebase#3195
QuantumExplorer merged 4 commits intov3.1-devfrom
chore/fix-typos

Conversation

@QuantumExplorer
Copy link
Member

@QuantumExplorer QuantumExplorer commented Mar 6, 2026

Issue being fixed or feature implemented

Various typos in comments, docs, error messages, and identifiers across the codebase.

What was done?

Fixed ~150 typos found by the typos spell checker across 80 files. Examples:

  • compolation -> compilation
  • prerequisities -> prerequisites
  • overriden -> overridden
  • implemtation -> implementation
  • cachable -> cacheable
  • bianry -> binary
  • enviroment -> environment
  • threeshold -> threshold
  • purchaseing -> purchasing
  • splited -> split

Legacy identifiers with typos in their names (CoinSelectionUnsufficientUTXOS, IndentityIdReplaceError) are left as-is to avoid breaking changes.

How Has This Been Tested?

typos spell checker passes with zero errors after fixes.

Breaking Changes

None. Only comments, docs, and internal string literals are changed.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation

    • Corrected spelling and grammar inconsistencies across documentation files and code comments.
  • Chores

    • Fixed variable naming and corrected typos throughout the codebase for improved clarity and consistency.

QuantumExplorer and others added 2 commits March 6, 2026 14:29
Run typos spell checker across the entire codebase, fixing ~150 genuine
typos in comments, docs, error messages, and variable names. Configure
_typos.toml with allowlists for base58/hex false positives and legacy
identifiers that cannot be renamed without breaking changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Accidentally created by typos auto-fix. The original
IndentityIdReplaceError.js is the file in use.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@QuantumExplorer QuantumExplorer requested a review from shumkov as a code owner March 6, 2026 07:30
@github-actions github-actions bot added this to the v3.1.0 milestone Mar 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

✅ gRPC Query Coverage Report

================================================================================
gRPC Query Coverage Report - NEW QUERIES ONLY
================================================================================

Total queries in proto: 53
Previously known queries: 47
New queries found: 6

================================================================================

New Query Implementation Status:
--------------------------------------------------------------------------------
✓ getAddressInfo                                /home/runner/work/platform/platform/packages/rs-sdk/src/platform/query.rs
✓ getAddressesBranchState                       /home/runner/work/platform/platform/packages/rs-sdk/src/platform/address_sync/mod.rs
✓ getAddressesInfos                             /home/runner/work/platform/platform/packages/rs-sdk/src/platform/fetch_many.rs
✓ getAddressesTrunkState                        /home/runner/work/platform/platform/packages/rs-sdk/src/platform/query.rs
✓ getRecentAddressBalanceChanges                /home/runner/work/platform/platform/packages/rs-sdk/src/platform/query.rs
✓ getRecentCompactedAddressBalanceChanges       /home/runner/work/platform/platform/packages/rs-sdk/src/platform/query.rs

================================================================================
Summary:
--------------------------------------------------------------------------------
New queries implemented: 6 (100.0%)
New queries missing: 0 (0.0%)

Total known queries: 53
  - Implemented: 50
  - Not implemented: 2
  - Excluded: 1

Not implemented queries:
  - getConsensusParams
  - getTokenPreProgrammedDistributions

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e7e139ba-12cc-471d-8520-aae18bf5fa51

📥 Commits

Reviewing files that changed from the base of the PR and between 881c6a5 and 4d9f2a1.

📒 Files selected for processing (13)
  • packages/dapi/doc/architecture.md
  • packages/js-dapi-client/lib/transport/ReconnectableStream.js
  • packages/rs-drive-abci/src/platform_types/mod.rs
  • packages/rs-sdk/tests/fetch/config.rs
  • packages/rs-sdk/tests/fetch/contested_resource.rs
  • packages/rs-sdk/tests/vectors/check_mn_voting_prerequisites/.gitkeep
  • packages/rs-sdk/tests/vectors/check_mn_voting_prerequisites/data_contract-e668c659af66aee1e72c186dde7b5b7e0a1d712a09c40d5721f622bf53c53155.json
  • packages/rs-sdk/tests/vectors/check_mn_voting_prerequisites/msg_GetContestedResourceVoteStateRequest_aaaa80ce4fdfc75252132a85e6c12bea6a47c9f7bf30133713b6b5cfec3a4d57.json
  • packages/rs-sdk/tests/vectors/check_mn_voting_prerequisites/msg_GetContestedResourcesRequest_8f71462d5f438e1b12fedf94ad5799af81392b7b0cbb7e86412da37ab13aef4b.json
  • packages/rs-sdk/tests/vectors/check_mn_voting_prerequisites/msg_GetDataContractRequest_e87a2e6acef76975c30eb7272da71733fb6ad13495beb7ca1b6a6c4ceb30e0f7.json
  • packages/rs-sdk/tests/vectors/check_mn_voting_prerequisites/quorum_pubkey-106-029045172fbebcf97290db8879490a48ac0d1d60e249d031b5ad79e3e46e3fca.json
  • packages/wallet-lib/src/types/Account/methods/broadcastTransaction.js
  • packages/wallet-lib/src/types/Account/methods/getAddress.js
🚧 Files skipped from review as they are similar to previous changes (5)
  • packages/wallet-lib/src/types/Account/methods/broadcastTransaction.js
  • packages/rs-drive-abci/src/platform_types/mod.rs
  • packages/js-dapi-client/lib/transport/ReconnectableStream.js
  • packages/dapi/doc/architecture.md
  • packages/rs-sdk/tests/fetch/config.rs

📝 Walkthrough

Walkthrough

This pull request comprehensively fixes spelling and typographical errors across the monorepo, spanning documentation, comments, variable names, test descriptions, and error messages. Changes are distributed across 60+ files with no functional or control-flow modifications.

Changes

Cohort / File(s) Summary
GitHub Actions & Configuration
.github/actions/s3-layer-cache-settings/action.yaml, .gitignore, Dockerfile
Minor typo corrections in descriptions and comments: "correcly" → "correctly", "runnner" → "runner", "compolation" → "compilation".
Documentation Files
docs/DOCKER.md, packages/dapi/README.md, packages/dapi/doc/architecture.md, packages/dashmate/docs/services/*, packages/wallet-lib/docs/*
Documentation typo fixes: "cachable" → "cacheable", "documentaion" → "documentation", "prefered" → "preferred", "Heler" → "Helper", "independant" → "independent", "throwed" → "thrown", "succesfully" → "successfully", "initializated" → "initialized".
Test Descriptions & Assertions
packages/dapi/test/unit/transactionsFilter/TransactionHashesCache.spec.js, packages/dash-spv/test/index.js, packages/js-grpc-common/test/integration/loadPackageDefinition.spec.js, packages/wallet-lib/src/types/Account/methods/createTransaction.spec.js, packages/wallet-lib/tests/integration/types/Wallet.spec.js
Test string and description corrections: "Trasactions" → "Transactions", "addding" → "adding", "successfuly" → "successfully", "sould" → "should", "Beofire" → "Before".
Comment & Code Comment Fixes
packages/dashmate/configs/getConfigFileMigrationsFactory.js, packages/dashmate/src/listr/tasks/setup/local/enableCoreQuorumsTaskFactory.js, packages/js-dapi-client/.npmignore, packages/js-dapi-client/lib/transport/ReconnectableStream.js, packages/js-grpc-common/lib/server/checks/checkVersionWrapperFactory.js, packages/js-grpc-common/lib/utils/semanticVersioningConversion.js, packages/rs-dapi/src/services/streaming_service/zmq_listener.rs, packages/rs-dpp/src/util/cbor_value/mod.rs
Comment typos corrected: "netwrok" → "network", "eligable" → "eligible", "folde" → "folder", "HACH" → "HACK", "Stoped" → "Stopped", "hanldler" → "handler", "sematic" → "semantic", "occured" → "occurred", "re-implemtation" → "re-implementation".
Database & Drive Layer
packages/rs-drive-abci/src/abci/handler/info.rs, packages/rs-drive-abci/src/abci/handler/prepare_proposal.rs, packages/rs-drive-abci/src/abci/handler/process_proposal.rs, packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/mod.rs, packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/batch/tests/document/creation.rs, packages/rs-drive-abci/src/platform_types/mod.rs, packages/rs-drive/src/config.rs, packages/rs-drive/src/error/document.rs
Spelling corrections in ABCI handlers and drive layer: "commited" → "committed", "sinlge" → "single", "requst" → "request"; error message strings corrected from "propoerty" → "property".
State Transition & Token Actions
packages/rs-drive/src/state_transition_action/batch/batched_transition/document_transition/document_transfer_transition_action/mod.rs, packages/rs-drive/src/state_transition_action/batch/batched_transition/token_transition/token_direct_purchase_transition_action/v0/transformer.rs, packages/rs-drive/src/state_transition_action/batch/batched_transition/token_transition/token_set_price_for_direct_purchase_transition_action/v0/transformer.rs, packages/rs-drive/src/util/batch/drive_op_batch/finalize_task.rs
Documentation corrections: "transferd" → "transferred", "direct_purchaseing" → "direct_purchasing", "implemeneted" → "implemented".
Platform Value & SDK
packages/rs-platform-value/src/replace.rs, packages/rs-sdk/tests/fetch/config.rs
Typo corrections: "bianry" → "binary", "enviroment" → "environment"; documentation clarified for test configuration file paths.
Voting & Prerequisite Function Renames
packages/rs-sdk/tests/fetch/contested_resource.rs, packages/rs-sdk/tests/fetch/contested_resource_identity_votes.rs, packages/rs-sdk/tests/fetch/contested_resource_polls_by_ts.rs, packages/rs-sdk/tests/fetch/contested_resource_vote_state.rs, packages/rs-sdk/tests/fetch/contested_resource_voters.rs, packages/rs-sdk/tests/fetch/prefunded_specialized_balance.rs
Function signature updated: check_mn_voting_prerequisitiescheck_mn_voting_prerequisites across multiple test files; all references and error messages updated accordingly.
Simple Signer & Wallet Lib Core
packages/simple-signer/src/signer.rs, packages/wallet-lib/src/CONSTANTS.js, packages/wallet-lib/src/types/Storage/_configureAdapter.js, packages/wallet-lib/src/types/Wallet/methods/sweepWallet.js, packages/wallet-lib/src/types/Account/methods/broadcastTransaction.js
Documentation and comment corrections: "Addres" → "Address", "proportinal" → "proportional", "argAdapterContructorName" → "argAdapterConstructorName", "transfered" → "transferred", "substract" → "subtract".
Address & Path Utility Functions
packages/wallet-lib/src/utils/bip44/getMissingIndexes.js, packages/wallet-lib/src/utils/bip44/isContiguousPath.js, packages/wallet-lib/src/types/Account/methods/getAddress.js, packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js
Variable renames: "splitedPath" → "splitPath", "splitedCurrPath" → "splitCurrPath", "splitedPrevPath" → "splitPrevPath"; JSDoc corrections: "addresss" → "address", "usused" → "unused".
Coin Selection & Transaction Estimator
packages/wallet-lib/src/utils/coinSelection.spec.js, packages/wallet-lib/src/utils/coinSelections/TransactionEstimator.js, packages/wallet-lib/src/utils/coinSelections/strategies/simpleAscendingAccumulator.js, packages/wallet-lib/src/utils/coinSelections/strategies/simpleAscendingAccumulator.spec.js, packages/wallet-lib/src/utils/coinSelections/strategies/simpleDescendingAccumulator.js, packages/wallet-lib/src/utils/coinSelections/strategies/simpleDescendingAccumulator.spec.js
Test constant and parameter renames: "FOURTY_DASH" → "FORTY_FIVE_DASH", "amoutToReduce" → "amountToReduce", "threesholdSatoshis" → "thresholdSatoshis"; error message corrections: "Unsufficient" → "Insufficient", "enought" → "enough".
Account Methods & Transactions
packages/wallet-lib/src/types/Account/methods/getTransactionHistory.js, packages/wallet-lib/src/types/Account/methods/createTransaction.spec.js, packages/wallet-lib/src/plugins/Worker.spec.js, packages/wallet-lib/src/transport/DAPIClientTransport/methods/subscribeToAddressesTransactions.js, packages/wallet-lib/src/transport/FixtureTransport/methods/subscribeToAddressesTransactions.js, packages/wallet-lib/src/types/Account/_sortPlugins.js
Documentation and comment fixes: "formated" → "formatted", "additionnal" → "additional", "Thoses" → "Those", "Thresold" → "Threshold", "slowFetchThresold" → "slowFetchThreshold", "accross" → "across".
SDK Documentation
packages/js-dash-sdk/docs/examples/generate-a-new-mnemonic.md, packages/js-dash-sdk/src/SDK/Client/Platform/methods/documents/get.ts, packages/wallet-lib/docs/plugins/using-a-plugin.md, packages/wallet-lib/docs/plugins/writing-a-new-plugin.md, packages/wallet-lib/docs/usage/events.md, packages/wallet-lib/docs/wallet/exportWallet.md, packages/wallet-lib/examples/offline-wallet.js
Documentation example and comment corrections: "mnemnonic" → "mnemonic", "independant" → "independent", "thoses" → "those", "addreses" → "addresses".
Rust Proof & DPP
packages/rs-drive-proof-verifier/src/from_request.rs, packages/rs-dapi-client/src/executor.rs, packages/rs-dapi-client/src/lib.rs, packages/rs-dapi-client/src/transport/grpc.rs, packages/rs-dpp/src/util/cbor_value/mod.rs, packages/wasm-dpp/src/document/extended_document.rs, packages/wasm-dpp/src/errors/from.rs, packages/wasm-dpp/test/integration/dataContract/validation/validateDataContractFactory.spec.js, packages/wasm-dpp2/tests/unit/DataContract.spec.ts
Documentation and comment corrections: "Conver" → "Convert", "loosing" → "losing", "Depreacted" → "Deprecated", "overriden" → "overridden", "unsed" → "unused", "erros" → "errors", "indeciesDefinition" → "indicesDefinition", "pupup" → "popup".
Design & Architecture
packages/rs-dapi/doc/DESIGN.md
Significant expansion and restructuring of deployment lifecycle section with Dashmate integration details, Envoy Gateway context, and deployment considerations; spelling correction "livecycle" → "lifecycle".
Platform Test Suite
packages/platform-test-suite/test/e2e/contacts.spec.js
Data contract schema index rename: "onwerIdToUserId" → "ownerIdToUserId" in test fixture.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Hopping through the code with careful eyes,
Each typo caught, a small surprise!
From "prerequisities" to "prerequisites" we go,
Spelling's fixed from head to toe!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: fix typos across codebase' accurately and concisely summarizes the main change: a comprehensive typo-fixing pass across the codebase affecting ~150 typos in ~80 files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/fix-typos

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

✅ DashSDKFFI.xcframework built for this PR.

SwiftPM (host the zip at a stable URL, then use):

.binaryTarget(
  name: "DashSDKFFI",
  url: "https://your.cdn.example/DashSDKFFI.xcframework.zip",
  checksum: "d627c12f99f9dbf4a74fb52c447403002764900ffa1df82a3d55a10d86399fd4"
)

Xcode manual integration:

  • Download 'DashSDKFFI.xcframework' artifact from the run link above.
  • Drag it into your app target (Frameworks, Libraries & Embedded Content) and set Embed & Sign.
  • If using the Swift wrapper package, point its binaryTarget to the xcframework location or add the package and place the xcframework at the expected path.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 12

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js (1)

11-11: ⚠️ Potential issue | 🔴 Critical

Critical: Skip parameter functionality is not implemented correctly.

The skip parameter is intended to skip a number of unused addresses, but the implementation has a logic error:

  1. Line 11: skipped is initialized to 0 and never modified
  2. Lines 37-50: The loop finds the first unused address without any skip logic
  3. Line 52: The condition if (skipped < skip) will always be if (0 < skip) since skipped never changes
  4. Line 53: Calls this.getAddress(0) which doesn't match the intended skip behavior

This means the skip parameter has no effect. The loop should increment a counter and only return an address after skipping the specified number of unused addresses.

🔧 Suggested fix to implement skip functionality
-  let unused = {
-    address: '',
-  };
-  const skipped = 0;
+  let unused = {
+    address: '',
+  };
+  let skipped = 0;
   const { walletId } = this;
   const accountIndex = this.index;
 
   const { addresses } = this.storage.getWalletStore(walletId).getPathState(this.accountPath);
 
   const chainStore = this.storage.getChainStore(this.network);
 
   // We sort by type
   const sortedAddresses = {
     external: {},
     internal: {},
   };
   Object
     .keys(addresses)
     .forEach((path) => {
       const splittedPath = path.split('/');
       let pathType = 'external';
       if (splittedPath.length > 1) {
         pathType = (splittedPath[splittedPath.length - 2] === '0') ? 'external' : 'internal';
       }
       sortedAddresses[pathType][path] = addresses[path];
     });
 
   const keys = Object.keys(sortedAddresses[type]);
 
   for (let i = 0; i < keys.length; i += 1) {
     const key = keys[i];
     const address = (sortedAddresses[type][key]);
     const addressState = chainStore.getAddress(address);
     if (!addressState || addressState.transactions.length === 0) {
+      if (skipped < skip) {
+        skipped += 1;
+        continue;
+      }
       const keychainData = this.keyChainStore.getMasterKeyChain().getForPath(key);
       unused = {
         address: keychainData.address.toString(),
         path: key,
         index: parseInt(key.split('/').splice(-1)[0], 10),
       };
       break;
     }
   }
 
-  if (skipped < skip) {
-    unused = this.getAddress(skipped);
-  }
   if (unused.address === '') {
     return this.getAddress(accountIndex, type);
   }
   return unused;

Also applies to: 37-54

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js` at line
11, The getUnusedAddress method's skip logic is broken because the local
variable skipped is initialized but never incremented, so the skip parameter has
no effect; update the loop inside getUnusedAddress to increment skipped each
time you encounter an unused address and only return (or call
this.getAddress(index)) once skipped >= skip, ensuring you use the current
iteration/index (e.g., the loop index or the found address index) when calling
this.getAddress instead of hardcoding 0; adjust control flow so the method
continues scanning until it has skipped the requested number of unused addresses
and then returns the next unused one.
🧹 Nitpick comments (2)
packages/wallet-lib/src/types/Account/methods/getTransactionHistory.js (1)

7-8: Optional: Consider fixing camelCase inconsistency.

sortbyTimeDescending (line 7) uses a lowercase 'b', while sortByHeightDescending (line 8) correctly uses uppercase 'B'. Since this PR is about fixing typos, this naming inconsistency could also be addressed. The function is internal (not exported), so renaming is safe.

♻️ Proposed fix
-const sortbyTimeDescending = (a, b) => (b.time - a.time);
+const sortByTimeDescending = (a, b) => (b.time - a.time);

Also update the reference on line 81:

-  return transactionHistory.sort(sortbyTimeDescending);
+  return transactionHistory.sort(sortByTimeDescending);

As per coding guidelines: "Use camelCase for variables and functions in JS/TS".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/wallet-lib/src/types/Account/methods/getTransactionHistory.js`
around lines 7 - 8, Rename the mis-cased function sortbyTimeDescending to
camelCase sortByTimeDescending and update all its usages (e.g., the call site
that currently references sortbyTimeDescending near where sorting is applied) so
it matches the correct identifier; keep sortByHeightDescending as-is for
consistency with camelCase naming. Ensure only the internal function name and
its references are changed (no API/export changes).
packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js (1)

27-27: Consider renaming splittedPath to fix grammatical error.

The variable name uses "splitted", but the correct past tense of "split" is "split". Consider renaming to splitPath or pathParts for grammatical correctness. Since this is a local variable, the change wouldn't introduce breaking changes.

📝 Suggested naming improvements
-      const splittedPath = path.split('/');
+      const splitPath = path.split('/');
       let pathType = 'external';
-      if (splittedPath.length > 1) {
-        pathType = (splittedPath[splittedPath.length - 2] === '0') ? 'external' : 'internal';
+      if (splitPath.length > 1) {
+        pathType = (splitPath[splitPath.length - 2] === '0') ? 'external' : 'internal';
       }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js` at line
27, Rename the local variable `splittedPath` to a grammatically correct name
(e.g., `splitPath` or `pathParts`) inside the getUnusedAddress function in
getUnusedAddress.js; update every occurrence (declaration and uses) of
`splittedPath` to the chosen name so references like `const splittedPath =
path.split('/')` become `const splitPath = path.split('/')` (and subsequent
indexing or operations use `splitPath`) to avoid breaking behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/dapi/doc/architecture.md`:
- Line 210: Fix the typo "officaially" to "officially" in the sentence that
begins "DAPI is designed to be deployed on masternode. The preferred and
officaially supported way is to use [dashmate]..." (update the string in the
markdown content so it reads "officially"); ensure the corrected sentence now
reads "The preferred and officially supported way is to use [dashmate]..." to
match the prior "preferred" correction.

In `@packages/dashmate/docs/services/dashmate_helper.md`:
- Around line 5-6: Replace the ungrammatical sentence "Both CLI and Helper using
Docker to manage containers and services defined in docker-compose files." in
the docs entry so it includes a verb; for example change it to "Both the CLI and
the Helper use Docker to manage containers and services defined in
docker-compose files." Ensure the definite article "the" and the plural verb
"use" are applied to "CLI" and "Helper" to fix subject–verb agreement.

In `@packages/js-dapi-client/lib/transport/ReconnectableStream.js`:
- Line 217: In ReconnectableStream.js, update the inline comment inside the
ReconnectableStream retry/error-handling logic (around the UNKNOWN error
handling) to fix the typo: change "HASH" (and any "HACH") to "HACK" so the
comment correctly reads that this is a hack/workaround for grpc-web behavior;
locate the comment within the ReconnectableStream class's error handling (e.g.,
the method handling UNKNOWN errors/retries) and replace the word only.

In `@packages/js-grpc-common/lib/utils/semanticVersioningConversion.js`:
- Line 2: Update the docstring in
packages/js-grpc-common/lib/utils/semanticVersioningConversion.js to fix the
grammatical typo: replace "an 32-bit integer" with "a 32-bit integer" in the top
comment describing the conversion function (the comment that begins "Convert a
semantic versioning string into ...").

In `@packages/rs-drive-abci/src/platform_types/mod.rs`:
- Line 5: Fix the documentation comment that contains a duplicated word by
changing "/// A clean version of the the request to finalize a block" to "/// A
clean version of the request to finalize a block"; locate the doc comment in
mod.rs (the triple-slash comment immediately above the type or item describing
the "clean version" of the request) and update the text accordingly.

In `@packages/rs-sdk/tests/fetch/config.rs`:
- Around line 20-22: Update the doc comment to reflect the actual .env location:
change the path reference from `${CARGO_MANIFEST_DIR}/.env` to
`${CARGO_MANIFEST_DIR}/tests/.env` in the comment that documents Config::new()
and retain mention of the DASH_SDK_ prefix (Config::CONFIG_PREFIX) so the
documentation matches the runtime behavior in Config::new().

In `@packages/rs-sdk/tests/fetch/contested_resource.rs`:
- Around line 373-374: Fix the typo in the doc comment for the helper: change
the misspelled word "prerequsities" to "prerequisites" in the comment above the
function check_mn_voting_prerequisites so the summary line correctly reads
"Ensure prerequisites for masternode voting tests are met".
- Around line 374-375: The fixture directory name does not match the updated
namespace used by the test: update the fixtures so
setup_api("check_mn_voting_prerequisites") can find them by renaming the
mis‑spelled fixture folder to the corrected name
"check_mn_voting_prerequisites"; ensure the directory name exactly matches the
string passed to setup_api and that any CI/offline test references are updated
to the corrected folder name so the vectors load during tests (look for the
fixtures used by the check_mn_voting_prerequisites test and the setup_api
helper).

In `@packages/wallet-lib/docs/wallet/exportWallet.md`:
- Line 2: Reword the description sentence for the exportWallet documentation to
clearly state that the wallet will be exported in a default format determined by
how the wallet was initialized (for example, "mnemonic" or "HDPubKey"), e.g.
replace the existing line with a concise sentence like: "Exports the wallet
using the default output format, which is determined by how the wallet was
initialized (e.g., mnemonic, HDPubKey)." Refer to the exportWallet method/docs
when making this change.

In `@packages/wallet-lib/src/types/Account/methods/broadcastTransaction.js`:
- Line 26: Update the comment in broadcastTransaction.js near the
broadcastTransaction logic to fully correct the grammar: change the line that
currently reads "We iterate out input to subtract their balance." to a clear
phrasing such as "We iterate over the inputs to subtract their balances." —
locate the comment inside the broadcastTransaction function in
packages/wallet-lib/src/types/Account/methods/broadcastTransaction.js and
replace the sentence to use "iterate over inputs" and plural "balances" to match
intent.

In `@packages/wallet-lib/src/types/Account/methods/getAddress.js`:
- Line 4: Fix the JSDoc summary for the getAddress method: replace the phrase
"Get a specific addresses based on the index and type of address." with the
singular form "Get a specific address based on the index and type of address."
so the documentation correctly reflects that getAddress returns one address.

In `@packages/wallet-lib/src/utils/coinSelections/index.js`:
- Line 5: The require currently imports the legacy error class with the
misspelled message ("Unsufficient utxos ..."), so update the actual error class
in the module exported by '../../errors/CoinSelectionUnsufficientUTXOS' to use
the corrected message ("Insufficient utxos ...") in its constructor (or
alternatively revert this file to require the legacy name and message
consistently); ensure the exported class name and constructor message match the
new variable CoinSelectionInsufficientUTXOS and the test expectation in
coinSelection.spec.js.

---

Outside diff comments:
In `@packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js`:
- Line 11: The getUnusedAddress method's skip logic is broken because the local
variable skipped is initialized but never incremented, so the skip parameter has
no effect; update the loop inside getUnusedAddress to increment skipped each
time you encounter an unused address and only return (or call
this.getAddress(index)) once skipped >= skip, ensuring you use the current
iteration/index (e.g., the loop index or the found address index) when calling
this.getAddress instead of hardcoding 0; adjust control flow so the method
continues scanning until it has skipped the requested number of unused addresses
and then returns the next unused one.

---

Nitpick comments:
In `@packages/wallet-lib/src/types/Account/methods/getTransactionHistory.js`:
- Around line 7-8: Rename the mis-cased function sortbyTimeDescending to
camelCase sortByTimeDescending and update all its usages (e.g., the call site
that currently references sortbyTimeDescending near where sorting is applied) so
it matches the correct identifier; keep sortByHeightDescending as-is for
consistency with camelCase naming. Ensure only the internal function name and
its references are changed (no API/export changes).

In `@packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js`:
- Line 27: Rename the local variable `splittedPath` to a grammatically correct
name (e.g., `splitPath` or `pathParts`) inside the getUnusedAddress function in
getUnusedAddress.js; update every occurrence (declaration and uses) of
`splittedPath` to the chosen name so references like `const splittedPath =
path.split('/')` become `const splitPath = path.split('/')` (and subsequent
indexing or operations use `splitPath`) to avoid breaking behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 54d3efa6-82de-47d3-b107-fe1c65033f71

📥 Commits

Reviewing files that changed from the base of the PR and between 95b0d5c and 881c6a5.

⛔ Files ignored due to path filters (1)
  • packages/dashmate/templates/platform/drive/tenderdash/config.toml.dot is excluded by !**/*.dot
📒 Files selected for processing (78)
  • .github/actions/s3-layer-cache-settings/action.yaml
  • .gitignore
  • Dockerfile
  • docs/DOCKER.md
  • packages/dapi/README.md
  • packages/dapi/doc/architecture.md
  • packages/dapi/test/unit/transactionsFilter/TransactionHashesCache.spec.js
  • packages/dash-spv/test/index.js
  • packages/dashmate/configs/getConfigFileMigrationsFactory.js
  • packages/dashmate/docs/services/dashmate_helper.md
  • packages/dashmate/src/listr/tasks/setup/local/enableCoreQuorumsTaskFactory.js
  • packages/js-dapi-client/.npmignore
  • packages/js-dapi-client/lib/transport/ReconnectableStream.js
  • packages/js-dash-sdk/docs/examples/generate-a-new-mnemonic.md
  • packages/js-dash-sdk/src/SDK/Client/Platform/methods/documents/get.ts
  • packages/js-grpc-common/lib/server/checks/checkVersionWrapperFactory.js
  • packages/js-grpc-common/lib/utils/semanticVersioningConversion.js
  • packages/js-grpc-common/test/integration/loadPackageDefinition.spec.js
  • packages/platform-test-suite/test/e2e/contacts.spec.js
  • packages/rs-dapi-client/src/executor.rs
  • packages/rs-dapi-client/src/lib.rs
  • packages/rs-dapi-client/src/transport/grpc.rs
  • packages/rs-dapi/doc/DESIGN.md
  • packages/rs-dapi/src/services/streaming_service/zmq_listener.rs
  • packages/rs-dpp/src/util/cbor_value/mod.rs
  • packages/rs-drive-abci/src/abci/handler/info.rs
  • packages/rs-drive-abci/src/abci/handler/prepare_proposal.rs
  • packages/rs-drive-abci/src/abci/handler/process_proposal.rs
  • packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/mod.rs
  • packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/batch/tests/document/creation.rs
  • packages/rs-drive-abci/src/platform_types/mod.rs
  • packages/rs-drive-proof-verifier/src/from_request.rs
  • packages/rs-drive/src/config.rs
  • packages/rs-drive/src/error/document.rs
  • packages/rs-drive/src/state_transition_action/batch/batched_transition/document_transition/document_transfer_transition_action/mod.rs
  • packages/rs-drive/src/state_transition_action/batch/batched_transition/token_transition/token_direct_purchase_transition_action/v0/transformer.rs
  • packages/rs-drive/src/state_transition_action/batch/batched_transition/token_transition/token_set_price_for_direct_purchase_transition_action/v0/transformer.rs
  • packages/rs-drive/src/util/batch/drive_op_batch/finalize_task.rs
  • packages/rs-platform-value/src/replace.rs
  • packages/rs-sdk/tests/fetch/config.rs
  • packages/rs-sdk/tests/fetch/contested_resource.rs
  • packages/rs-sdk/tests/fetch/contested_resource_identity_votes.rs
  • packages/rs-sdk/tests/fetch/contested_resource_polls_by_ts.rs
  • packages/rs-sdk/tests/fetch/contested_resource_vote_state.rs
  • packages/rs-sdk/tests/fetch/contested_resource_voters.rs
  • packages/rs-sdk/tests/fetch/prefunded_specialized_balance.rs
  • packages/simple-signer/src/signer.rs
  • packages/wallet-lib/docs/plugins/using-a-plugin.md
  • packages/wallet-lib/docs/plugins/writing-a-new-plugin.md
  • packages/wallet-lib/docs/usage/events.md
  • packages/wallet-lib/docs/wallet/exportWallet.md
  • packages/wallet-lib/examples/offline-wallet.js
  • packages/wallet-lib/src/CONSTANTS.js
  • packages/wallet-lib/src/plugins/Worker.spec.js
  • packages/wallet-lib/src/transport/DAPIClientTransport/methods/subscribeToAddressesTransactions.js
  • packages/wallet-lib/src/transport/FixtureTransport/methods/subscribeToAddressesTransactions.js
  • packages/wallet-lib/src/types/Account/_sortPlugins.js
  • packages/wallet-lib/src/types/Account/methods/broadcastTransaction.js
  • packages/wallet-lib/src/types/Account/methods/createTransaction.spec.js
  • packages/wallet-lib/src/types/Account/methods/getAddress.js
  • packages/wallet-lib/src/types/Account/methods/getTransactionHistory.js
  • packages/wallet-lib/src/types/Account/methods/getUnusedAddress.js
  • packages/wallet-lib/src/types/Storage/_configureAdapter.js
  • packages/wallet-lib/src/types/Wallet/methods/sweepWallet.js
  • packages/wallet-lib/src/utils/bip44/getMissingIndexes.js
  • packages/wallet-lib/src/utils/bip44/isContiguousPath.js
  • packages/wallet-lib/src/utils/coinSelection.spec.js
  • packages/wallet-lib/src/utils/coinSelections/TransactionEstimator.js
  • packages/wallet-lib/src/utils/coinSelections/index.js
  • packages/wallet-lib/src/utils/coinSelections/strategies/simpleAscendingAccumulator.js
  • packages/wallet-lib/src/utils/coinSelections/strategies/simpleAscendingAccumulator.spec.js
  • packages/wallet-lib/src/utils/coinSelections/strategies/simpleDescendingAccumulator.js
  • packages/wallet-lib/src/utils/coinSelections/strategies/simpleDescendingAccumulator.spec.js
  • packages/wallet-lib/tests/integration/types/Wallet.spec.js
  • packages/wasm-dpp/src/document/extended_document.rs
  • packages/wasm-dpp/src/errors/from.rs
  • packages/wasm-dpp/test/integration/dataContract/validation/validateDataContractFactory.spec.js
  • packages/wasm-dpp2/tests/unit/DataContract.spec.ts

QuantumExplorer and others added 2 commits March 6, 2026 14:58
- Fix "officaially" -> "officially" in dapi architecture docs
- Fix "HASH" -> "HACK" in ReconnectableStream.js comment (workaround)
- Fix "the the" -> "the" in rs-drive-abci platform_types doc comment
- Fix .env path in rs-sdk config doc comment to match actual code
- Fix "prerequsities" -> "prerequisites" in contested_resource doc
- Rename fixture directory to match corrected function name
- Fix "iterate out input" -> "iterate over the inputs" in broadcastTransaction
- Fix "a specific addresses" -> "a specific address" in getAddress JSDoc
- Revert variable rename in coinSelections/index.js to match legacy class

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The typos auto-fix incorrectly changed "Whth" to "With" inside a
base58-encoded identity ID string, breaking the test assertion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Member Author

@QuantumExplorer QuantumExplorer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed (PR made by AI)

@QuantumExplorer QuantumExplorer merged commit 40c3c15 into v3.1-dev Mar 6, 2026
101 of 103 checks passed
@QuantumExplorer QuantumExplorer deleted the chore/fix-typos branch March 6, 2026 08:38
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.

1 participant