snapshot-labs / sx-monorepo

Snapshot monorepo
https://snapshot.box
MIT License
14 stars 12 forks source link

fix: add validation to whitelist input #346

Closed wa0x6e closed 4 months ago

wa0x6e commented 4 months ago

Summary

Closes: #121

How to test

  1. Go to http://localhost:8080/#/create
  2. Move to Voting power steps
  3. Add a "Whitelist" strategy
  4. Try inputting some invalid and valid values in the "whitelist" input
  5. It should show an error when the input is not valid
  6. Create the space
  7. It should create the space without errors

Notes

Sekhmet commented 4 months ago

@wa0x6e looks good to me, tests are broken because we are comparing arrays to strings now.