Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the referendum_id per proposal_id #4

Open
AndlerRL opened this issue Jun 29, 2023 · 1 comment
Open

Getting the referendum_id per proposal_id #4

AndlerRL opened this issue Jun 29, 2023 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Comments

@AndlerRL
Copy link

Hello there! I'm testing the testrefendum contract and trying to get the tables for each referendum, but what it came to me is a scenario to know and track to which proposal/amendment is the referendum connected to. I was trying to see if I can find a way to connect a referendum to a proposal but I couldn't see such a connection.

How can I know if a referendum is connected to a proposal_id? I saw the parent property on the proposals table at the testproposal contract but this is for a proposal that comes from a main proposal (amendment).

@AndlerRL AndlerRL added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Jun 29, 2023
@tlacloc
Copy link
Contributor

tlacloc commented Jul 4, 2023

Hello! Sorry for the late reponse, the referendum are linked by proposal with the special_attribute row on the proposals table, it's only created once the proposals get on a voting phase. So if it's not there, the proposal is on debate phase. If not, indeed it's a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants