Skip to content

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Jun 30, 2025

This PR allows starknet alias to flag a proposal.

This is used when a starknet address is added in the space members as admin or moderator

@wa0x6e wa0x6e requested a review from ChaituVR June 30, 2025 14:55
@wa0x6e wa0x6e marked this pull request as ready for review June 30, 2025 14:55
@wa0x6e wa0x6e requested a review from Copilot June 30, 2025 14:55
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces support for using a starknet alias when flagging proposals. It changes the type definition for the 'from' field in flag proposals from 'address' to 'string' and updates the corresponding hashed types to include the new "flag-proposal" mapping.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/sign/types.ts Updated the 'from' field type to string for alias compatibility.
src/sign/hashedTypes.json Added mapping for the new "flag-proposal" hashed type.
Comments suppressed due to low confidence (2)

src/sign/types.ts:179

  • Changing the 'from' field from type 'address' to 'string' enables alias support. Please ensure all consuming functions and validations correctly handle the less strict string type.
    { name: 'from', type: 'string' },

src/sign/hashedTypes.json:78

  • [nitpick] Add a brief comment in the JSON explaining that the 'flag-proposal' entry is used to support flagging proposals with a starknet alias, similar to the vote mappings.
  "6107486ff2c58778b92eac3f9c92b26ab59f30959a12307ae868c197f382cdf6": "flag-proposal"

Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

@ChaituVR ChaituVR merged commit 3075574 into master Jun 30, 2025
4 checks passed
@ChaituVR ChaituVR deleted the feat-allow-starknet-alias-to-flag-proposal branch June 30, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants