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

Farm names should be case-insensitive unique names on chain #922

Open
sameh-farouk opened this issue Dec 27, 2023 · 0 comments
Open

Farm names should be case-insensitive unique names on chain #922

sameh-farouk opened this issue Dec 27, 2023 · 0 comments
Labels
type_bug Something isn't working
Milestone

Comments

@sameh-farouk
Copy link
Member

Describe the bug

see: threefoldtech/tfgrid-sdk-ts#1790

Currently we allow same farm name but in a different case to be inserted

ensure!(
!FarmIdByName::<T>::contains_key(name.clone()),
Error::<T>::FarmExists
);

FarmIdByName::<T>::insert(name.to_vec(), id);

@renauter renauter modified the milestones: later, 2.8.0 Mar 21, 2024
@renauter renauter added this to 3.14.x Mar 21, 2024
@renauter renauter added the type_bug Something isn't working label Mar 21, 2024
@sameh-farouk sameh-farouk removed this from 3.14.x Jun 2, 2024
@sameh-farouk sameh-farouk modified the milestones: 2.8.0, later Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants