Skip to content

Commit bcdb3ea

Browse files
committed
bump cabal version
1 parent 20e8303 commit bcdb3ea

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.github/workflows/code_check_backend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: haskell-actions/setup@v2
1515
with:
1616
ghc-version: '9.2.7'
17-
cabal-version: '3.6.0.0'
17+
cabal-version: '3.8'
1818

1919
- name: Use Python
2020
uses: actions/setup-python@v2
@@ -42,7 +42,7 @@ jobs:
4242
uses: haskell-actions/setup@v2
4343
with:
4444
ghc-version: '9.2.7'
45-
cabal-version: '3.6.0.0'
45+
cabal-version: '3.8'
4646

4747
- name: Use Python
4848
uses: actions/setup-python@v2

govtool/backend/vva-be.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cabal-version: 3.6
1+
cabal-version: 3.8
22
name: vva-be
3-
version: 2.0.29
3+
version: 2.0.23
44

55
-- A short (one-line) description of the package.
66
-- synopsis:

govtool/frontend/src/components/molecules/GovernanceActionNewCommitteeDetailsTabContent.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2630
export 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

Comments
 (0)