Skip to content

Commit

Permalink
Update govtool/frontend/src/utils/drepSearchPhraseProcessor.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan <[email protected]>
Signed-off-by: Michał Szałowski <[email protected]>
  • Loading branch information
MSzalowski and Ryun1 authored Jan 2, 2025
1 parent 0d280b9 commit 2712685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govtool/frontend/src/utils/drepSearchPhraseProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { decodeCIP129Identifier } from "./cip129identifier";
* Processes the search phrase for dRep and returns the dRep ID.
* If the phrase starts with "drep_script" or "drep",
* it decodes the CIP129 identifier and extracts the transaction ID.
* If the transaction ID starts with "22" or "23", it returns the ID without the prefix.
* If the DRep ID starts with "22" or "23", it returns the ID without the prefix.
* If any error occurs during processing, it returns the original phrase.
*
* @param phrase - The search phrase to be processed.
Expand Down

0 comments on commit 2712685

Please sign in to comment.