Closed ferostabio closed 1 year ago
Changed the error and its result constructors to take the code as the second param, which is now optional for the result. The default value is our SDK
error code, so most calls are simpler. Plus… message is passed to super, so makes more sense to have it as the first one.
Also changed all of the Preview functions and their implementation in the app
Applied the changes to validateAndParseAddress
but reverted them. It’s used in Address.ts
’s constructor, and I can’t realize why yet, but the frontend starts failing. Not sure if we want to follow the same approach for all entities, so have a look if you want to @brozorec .
Please test this PR on: https://v2-staging-416-dot-fuji-306908.ey.r.appspot.com