liquidity
liquidity copied to clipboard
sentinel error code
Summary of Bug
Sentinel errors must not start at 1 since this is reserved code.
See https://github.com/cosmos/cosmos-sdk/issues/9598
Version
Steps to Reproduce
For Admin Use
- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned
Good point. Thanks for brining it up.
- Must be greater than one, as a code value of one is reserved for internal errors.
- Must be unique within the module.
Would that mean just bumping everything up in the types/errors.go
This is something that needs to be fixed in the next version. We can bump the error code 1 instead of bumping everything up to minimize issues on client side.
Ahh yes much more efficient 💯