Jesulonimi21 / Swift-Algorand-Sdk

A Swift Sdk for interacting with the Algorand Blockchain
MIT License
19 stars 13 forks source link

Incorrect limitation for the URL parameter in AssetParam #26

Closed Vilijan closed 2 years ago

Vilijan commented 2 years ago

The URL field in the AssetParams object can be up to 96 bytes, as documented here.

I believe this line of code needs to be changed.

Additionally, all the other hard-code checks need to be re-evaluated to reflect the latest changes of the Algorand protocol.

Suggestion: Maybe one approach is to remove all the checks, where you won't perform runtime verification but you will rely on the Algorand Client to throw an error if the user enters incorrect data. With this approach, you won't need to track the latest updates all the time.