envoylabs / whoami

An NFT-based user and smart contract nameservice
Apache License 2.0
16 stars 10 forks source link

Use ensure_eq to tidy up code #69

Closed the-frey closed 2 years ago

the-frey commented 2 years ago

We do lots of stuff like if [check] return error - this could be more elegantly expressed like so:

https://github.com/CosmWasm/cw-plus/blob/main/contracts/cw20-ics20/src/contract.rs#L155