ClearContracts / cardano-constitution-voting-app

Voting app to be used by delegates at the Cardano Consitution Convention in Buenos Aires to ratify the initial constitution. This voting app was commissioned by Intersect.
https://cardano-constitution-voting-app.vercel.app
GNU Affero General Public License v3.0
0 stars 0 forks source link

Stripe whitespace from wallet address #180

Closed mattlaux closed 5 hours ago

mattlaux commented 6 hours ago

This PR addresses issue #175 where leading and trailing spaces in the wallet address would prevent the wallet from connecting.

There is now a .trim() call on the FE when the wallet address is passed to the BE. There is also a .trim() call on the BE before the wallet address is saved to the DB. These 2 checks should ensure that no wallet address with leading or trailing spaces gets saved to the DB.

I added 1 test:

  1. Success case of wallet address with leading and trailing spaces has the whitespace trimmed and successfully saves to the DB

Similar changes were made in the seed DB function that can be seen here.

Other changes:

vercel[bot] commented 6 hours ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cardano-constitution-voting-app-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 4:30pm
cardano-constitution-voting-app-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 26, 2024 4:30pm