@@ -17,11 +17,15 @@ type CCMemberToBeRemoved = {
1717 hasScript ?: boolean ;
1818} ;
1919
20- const getCip129Identifier = ( hash : string , hasScript ?: boolean ) =>
21- encodeCIP129Identifier ( {
22- txID : ( hasScript ? "13" : "02" ) + hash ,
23- bech32Prefix : "cc_cold" ,
20+ const getCip129Identifier = ( hash : string , hasScript ?: boolean ) => {
21+ // const isHotWallet = hasScript;
22+ const isHotWallet = false ;
23+
24+ return encodeCIP129Identifier ( {
25+ txID : ( isHotWallet ? "02" : "13" ) + hash ,
26+ bech32Prefix : isHotWallet ? "cc_hot" : "cc_cold" ,
2427 } ) ;
28+ } ;
2529
2630export const GovernanceActionNewCommitteeDetailsTabContent = ( {
2731 details,
@@ -35,7 +39,7 @@ export const GovernanceActionNewCommitteeDetailsTabContent = ({
3539 )
3640 . filter ( ( member ) => member ?. hash )
3741 . map ( ( member ) => ( {
38- cip129Identifier : getCip129Identifier ( member . hash , member . hasScript ) ,
42+ cip129Identifier : getCip129Identifier ( member . hash , ! ! member . hasScript ) ,
3943 expirationEpoch : member . expirationEpoch ,
4044 } ) ) ;
4145
@@ -45,7 +49,7 @@ export const GovernanceActionNewCommitteeDetailsTabContent = ({
4549 )
4650 . filter ( ( member ) => member ?. hash )
4751 . map ( ( member ) => ( {
48- cip129Identifier : getCip129Identifier ( member . hash , member . hasScript ) ,
52+ cip129Identifier : getCip129Identifier ( member . hash , ! ! member . hasScript ) ,
4953 expirationEpoch : member . expirationEpoch ,
5054 newExpirationEpoch : member . newExpirationEpoch ,
5155 } ) ) ;
@@ -55,7 +59,7 @@ export const GovernanceActionNewCommitteeDetailsTabContent = ({
5559 )
5660 . filter ( ( member ) => member ?. hash && member . hash . trim ( ) !== "" )
5761 . map ( ( member ) => ( {
58- cip129Identifier : getCip129Identifier ( member . hash , member . hasScript ) ,
62+ cip129Identifier : getCip129Identifier ( member . hash , ! ! member . hasScript ) ,
5963 } ) ) ;
6064
6165 return (
0 commit comments