diff --git a/packages/nami/src/ui/app/pages/dapp-connector/signTxUtil.ts b/packages/nami/src/ui/app/pages/dapp-connector/signTxUtil.ts index 3448ab3bd..3080eddbf 100644 --- a/packages/nami/src/ui/app/pages/dapp-connector/signTxUtil.ts +++ b/packages/nami/src/ui/app/pages/dapp-connector/signTxUtil.ts @@ -392,11 +392,22 @@ const toAssetInfo = ( return toAsset(assetInfo, BigInt(cardanoAsset.quantity)); }; +const ConwayEraGovernanceCertificates = new Set( + Object.values(ConwayEraCertificatesTypes).filter( + certificate => + ![ + ConwayEraCertificatesTypes.Registration, + ConwayEraCertificatesTypes.Unregistration, + ConwayEraCertificatesTypes.StakeRegistrationDelegation, + ].includes(certificate), + ), +); + export const txHasGovernanceFields = ({ body: { certificates, votingProcedures, proposalProcedures }, }: Wallet.Cardano.Tx) => certificates?.some(certificate => - Object.values(ConwayEraCertificatesTypes).includes( + ConwayEraGovernanceCertificates.has( certificate.__typename as unknown as ConwayEraCertificatesTypes, ), ) ||