-
Notifications
You must be signed in to change notification settings - Fork 9
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
🐛 Treasury Proposal Creation Allowed Without Receiving Stake Address and Amount #2435
Comments
Sentry Issue: GOVTOOL-FRONTEND-A9 |
@nebojsact , The frontend correctly prevents proceeding to the next step in treasury proposal creation if the "Receiving Stake Address" or "Amount" fields are empty or invalid. This functionality ensures user input validation on the client side. However, the backend currently allows the creation of treasury proposals without validating these fields, resulting in inconsistent behavior. Example: Creating a Treasury Proposal Without "Receiving Stake Address" or "Amount"The following curl command demonstrates how a treasury proposal can be created via the backend API without providing the "Receiving Stake Address" or "Amount":
Example: Creating a Proposal With an Invalid Stake AddressThe backend also allows proposals to be created with an incorrect stake address. The following example uses an invalid "Receiving Stake Address" (stake1):
Note
CC: @bosko-m |
@nebojsact I am still able to reproduce this issue. Could you confirm in which version of the PDFUI this issue is fixed? I believe the current PDFUI version is v0.5.4 on dev. CC: @bosko-m |
Hi @kneerose,
this one is fixed in latest version of pdf backend
[image: image.png]
…On Mon, Dec 9, 2024 at 5:19 AM Niraj Duwal ***@***.***> wrote:
@nebojsact <https://github.com/nebojsact> I am still able to reproduce
this issue. Could you confirm in which version of the PDFUI this issue is
fixed? I believe the current PDFUI version is v0.5.4 on dev.
image.png (view on web)
<https://github.com/user-attachments/assets/7a057c00-633e-4ea6-b1b7-77830bd9d00b>
CC: @bosko-m <https://github.com/bosko-m>
—
Reply to this email directly, view it on GitHub
<#2435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKSYINEZVFT6CYR7AIXGLD32EUK4RAVCNFSM6AAAAABSUMGIFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWHA2TGNZQGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@MSzalowski , I am unable to test this as the new PDF version has not been updated in the dev environment. Could you please update it to the latest version? |
@nebojsact , has the latest version of the backend been updated? I am still able to reproduce this issue. |
As soon as we have a deployment to preview, you will be able to test it @kneerose |
Area
Proposal Pillar
Domain
dev-sanchogov.tools
Which wallet were you using?
No response
Context
While creating a treasury proposal, the "Receiving Stake Address" and "Amount" fields are marked as required. However, it is possible to proceed to the next step even if these fields are left empty. As a result, I can create a treasury proposal without providing a receiving stake address or amount. When attempting to submit this proposal to the governance action, an error occurs.
To prevent this issue, the Continue button should be disabled and proposal creation should be rejected if the "Receiving Stake Address" or "Amount" field is empty or invalid.
Steps to reproduce
Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: