diff --git a/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx b/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx
index 5afc070e5..9fe20bbc9 100644
--- a/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx
+++ b/govtool/frontend/src/components/organisms/DashboardCards/DRepDashboardCard.tsx
@@ -59,7 +59,15 @@ export const DRepDashboardCard = ({
title: t("dashboard.cards.drep.dRepRegistration"),
}),
...(pendingTransaction.retireAsDrep && {
- description: (
+ description: voter?.givenName ? (
+
+ ) : (
{
*/
const createHash = useCallback(async (jsonLD: NodeObject) => {
try {
- const jsonHash = blake2bHex(JSON.stringify(jsonLD), undefined, 32);
+ const jsonHash = blake2bHex(
+ JSON.stringify(jsonLD, null, 2),
+ undefined,
+ 32,
+ );
return jsonHash;
} catch (error) {
Sentry.captureException(error);
diff --git a/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts b/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts
index e6709a4a5..73f05ec0a 100644
--- a/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts
+++ b/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts
@@ -109,7 +109,7 @@ export const useCreateGovernanceActionForm = (
const jsonld = await generateJsonld(body, GOVERNANCE_ACTION_CONTEXT);
- const jsonHash = blake2bHex(JSON.stringify(jsonld), undefined, 32);
+ const jsonHash = blake2bHex(JSON.stringify(jsonld, null, 2), undefined, 32);
// That allows to validate metadata hash
setHash(jsonHash);
diff --git a/govtool/frontend/src/hooks/forms/useEditDRepInfoForm.ts b/govtool/frontend/src/hooks/forms/useEditDRepInfoForm.ts
index 904d79ba6..7dc1b6346 100644
--- a/govtool/frontend/src/hooks/forms/useEditDRepInfoForm.ts
+++ b/govtool/frontend/src/hooks/forms/useEditDRepInfoForm.ts
@@ -100,7 +100,7 @@ export const useEditDRepInfoForm = (
const jsonld = await generateJsonld(body, DREP_CONTEXT, CIP_119);
- const jsonHash = blake2bHex(JSON.stringify(jsonld), undefined, 32);
+ const jsonHash = blake2bHex(JSON.stringify(jsonld, null, 2), undefined, 32);
setHash(jsonHash);
setJson(jsonld);
diff --git a/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx b/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx
index b737eda58..df8045594 100644
--- a/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx
+++ b/govtool/frontend/src/hooks/forms/useRegisterAsdRepForm.tsx
@@ -109,10 +109,9 @@ export const useRegisterAsdRepForm = (
],
standardReference: CIP_119,
});
-
const jsonld = await generateJsonld(body, DREP_CONTEXT, CIP_119);
- const jsonHash = blake2bHex(JSON.stringify(jsonld), undefined, 32);
+ const jsonHash = blake2bHex(JSON.stringify(jsonld, null, 2), undefined, 32);
setHash(jsonHash);
setJson(jsonld);
diff --git a/govtool/frontend/src/hooks/forms/useVoteContextForm.tsx b/govtool/frontend/src/hooks/forms/useVoteContextForm.tsx
index 9dc004a0c..11779489d 100644
--- a/govtool/frontend/src/hooks/forms/useVoteContextForm.tsx
+++ b/govtool/frontend/src/hooks/forms/useVoteContextForm.tsx
@@ -47,7 +47,7 @@ export const useVoteContextForm = (
});
const jsonld = await generateJsonld(body, CIP_100_CONTEXT, CIP_100);
- const jsonHash = blake2bHex(JSON.stringify(jsonld), undefined, 32);
+ const jsonHash = blake2bHex(JSON.stringify(jsonld, null, 2), undefined, 32);
// That allows to validate metadata hash
setHash(jsonHash);
diff --git a/govtool/frontend/src/i18n/locales/en.ts b/govtool/frontend/src/i18n/locales/en.ts
index 44a8c57a8..ad39c7410 100644
--- a/govtool/frontend/src/i18n/locales/en.ts
+++ b/govtool/frontend/src/i18n/locales/en.ts
@@ -85,7 +85,9 @@ export const en = {
reRegister: "Re-register as a DRep",
retire: "Retire as a DRep",
retirementInProgress:
- "You are being retired as MrDRep. You will receive a refund of {{deposit}} ADA when the transaction completes.",
+ "You are being retired. You will receive a refund of {{deposit}} ADA when the transaction completes.",
+ retirementInProgressWithGivenName:
+ "You are being retired as {{givenName}}. You will receive a refund of {{deposit}} ADA when the transaction completes.",
viewDetails: "View your DRep details",
youAreRegistered: "You are Registered as a DRep",
yourDRepId: "Your DRep ID",
@@ -361,7 +363,8 @@ export const en = {
},
dRepData: {
givenName: "DRep Name",
- givenNameHelpfulText: "This is the name that will be shown on your DRep profile",
+ givenNameHelpfulText:
+ "This is the name that will be shown on your DRep profile",
objectives: "Objectives",
objectivesHelpfulText:
"What you believe and what you want to achieve as a DRep.",
@@ -391,10 +394,9 @@ export const en = {
},
references: "References",
referenceDescription: "Description",
- referenceDescriptionHelpfulText:
- "Limit: 80 characters",
+ referenceDescriptionHelpfulText: "Limit: 80 characters",
referenceURL: "URL",
- },
+ },
errors: {
tooLongUrl: "Url must be less than 128 bytes",
mustBeStakeAddress: "It must be reward address in bech32 format",