Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Update recover method of NFT module to validate NFT attributes array #8974

Closed
Tracked by #7245
Incede opened this issue Sep 13, 2023 · 0 comments
Closed
Tracked by #7245

Update recover method of NFT module to validate NFT attributes array #8974

Incede opened this issue Sep 13, 2023 · 0 comments
Assignees
Milestone

Comments

@Incede
Copy link
Contributor

Incede commented Sep 13, 2023

Expected behavior

NFT store data value should be validated for schema related errors after decoding

Actual behavior

  • The recover function of the NFT module does not call validator.validate on the storeValue variable after decoding the value
  • The call to codec.decode does not validate astring’s length.

Steps to reproduce

Check the recover method of NFT module

Which version(s) does this affect? (Environment, OS, etc...)

release/6.1.0

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

No branches or pull requests

2 participants