[Code Health] Simplify error object usage #347
Labels
code health
Cleans up some code
community
A ticket intended to potentially be picked up by a community member
on-chain
On-chain business logic
Milestone
Objective
Simplify usage of cosmos-sdk error objects. Prefer calling
#Wrap()
/[#Wrapf()
](https://pkg.go.dev/cosmossdk.io/[email protected]#Error.Wrapf) methods over usingWrap()
/Wrapf()
static functions to improve readability.Origin Document
#328 (comment)
Goals
Deliverables
error
being passed is asdkerrors.Error
, calling it's respective method instead.VSCode
, but the regex pattern likely works on other IDEs as wellNon-goals / Non-deliverables
General deliverables
Creator: @bryanchriswhite
Co-Owners: @h5law
The text was updated successfully, but these errors were encountered: