Jesulonimi21 / Swift-Algorand-Sdk

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

All models should be equatable and structs #20

Closed stefanomondino closed 2 years ago

stefanomondino commented 2 years ago

For Unit test purposes (and by Swift global guidelines), all models should be structs (and not classes). By converting every model to object to struct, we gain conformance to Equatable for free, allowing us to write tests quicker.

SDK users shouldn't be allowed to edit models after they retrieve them from the SDK.