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

Validate denom and URL #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

poroburu
Copy link

The validation works when changing tests.rs. Was unsure about types to use in state.rs so I kept them as strings.

Also, if I try to pipe the URL into the URL state...the token_uri assertion fails.

BASE_URL.save(deps.storage, &_parsed_url.to_string())?;
assert_eq!(token.info.token_uri, Some("https://bafybeie2grcflzjvds7i33bxjjgktjdfcp2h2v27gdkbyuiaelvbgtdewy.ipfs.nftstorage.link/1/seedling.json".to_string()));

@JakeHartnell
Copy link
Contributor

@poroburu, this looks good! Great work. See my comments for some feedback.

Also, applied the suggestions I made, but it broke linting. Need another commit that just runs cargo fmt to fix the errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants