Skip to content

Commit b69015e

Browse files
wa0x6eChaituVR
andauthored
feat: allow starknet aliases to flag proposals (#550)
* feat: allow starknet aliases to flag proposals * Update src/helpers/alias.ts Co-authored-by: Chaitanya <[email protected]> --------- Co-authored-by: Chaitanya <[email protected]>
1 parent 5cf6ca1 commit b69015e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/helpers/alias.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ const OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS = [
2424
] as const;
2525

2626
// These types can be executed with a Starknet alias
27-
const TYPES_EXECUTABLE_BY_STARKNET_ALIAS = [...OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS] as const;
27+
const TYPES_EXECUTABLE_BY_STARKNET_ALIAS = [
28+
'flag-proposal',
29+
...OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS
30+
] as const;
2831

2932
// Memoization cache for getAllowedTypes
3033
const allowedTypesCache = new Map<string, ExecutableType[]>();
@@ -33,7 +36,7 @@ const allowedTypesCache = new Map<string, ExecutableType[]>();
3336
type ExecutableType =
3437
| (typeof TYPES_EXECUTABLE_BY_ALIAS)[number]
3538
| (typeof OPTIONAL_TYPES_EXECUTABLE_BY_ALIAS)[number]
36-
| 'update-proposal';
39+
| (typeof TYPES_EXECUTABLE_BY_STARKNET_ALIAS)[number];
3740

3841
/**
3942
* Checks if an alias relationship exists and is not expired

0 commit comments

Comments
 (0)