Skip to content

Commit f6684a1

Browse files
authored
Merge pull request #3204 from IntersectMBO/fix/3203-cip-129-script-based-drep-ids-are-using-the-wrong-bech32-prefix
fix(#3203): Fix wrong CIP-129 script based DRep prefix
2 parents f6300d6 + 7174e63 commit f6684a1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ changes.
1818

1919
- hotfix for ada handle and payment address validation order [Issue 3155](https://github.com/IntersectMBO/govtool/issues/3155)
2020
- fix proposal list performance by pre-filtering active proposals [Issue 3190](https://github.com/IntersectMBO/govtool/issues/3190)
21+
- Fix wrong prefix of script based dreps in CIP-129 standard [Issue 3203](https://github.com/IntersectMBO/govtool/issues/3203)
2122

2223
### Changed
2324

govtool/frontend/src/components/organisms/DRepCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const DRepCard = ({
6262

6363
const cip129Identifier = encodeCIP129Identifier({
6464
txID: `${isScriptBased ? "23" : "22"}${drepId}`,
65-
bech32Prefix: isScriptBased ? "drep_script" : "drep",
65+
bech32Prefix: "drep",
6666
});
6767

6868
const base64Image = getBase64ImageDetails(image ?? "");

govtool/frontend/src/components/organisms/DRepDetailsCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const DRepDetailsCard = ({
117117
<CopyableText
118118
value={encodeCIP129Identifier({
119119
txID: `${isScriptBased ? "23" : "22"}${drepId}`,
120-
bech32Prefix: isScriptBased ? "drep_script" : "drep",
120+
bech32Prefix: "drep",
121121
})}
122122
dataTestId="copy-cip-129-drep-id-button"
123123
/>

0 commit comments

Comments
 (0)