-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Supplier] feat: persistence proofs in submit proof msg handler #250
[Supplier] feat: persistence proofs in submit proof msg handler #250
Conversation
srv := keeper.NewMsgServerImpl(*supplierKeeper) | ||
ctx := sdk.WrapSDKContext(sdkCtx) | ||
|
||
// TODO_IN_THIS_COMMIT: refactor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[linter-name (fail-on-found)] reported by reviewdog 🐶
// TODO_IN_THIS_COMMIT: refactor
6ee96d3
to
a82a456
Compare
// } | ||
// } | ||
args: common, | ||
// TODO_IN_THIS_COMMIT: assert against sentinel error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[linter-name (fail-on-found)] reported by reviewdog 🐶
// TODO_IN_THIS_COMMIT: assert against sentinel error.
a82a456
to
bc265ef
Compare
bc265ef
to
9935197
Compare
9935197
to
9fa752e
Compare
067a310
to
fc28802
Compare
9fa752e
to
66e8a9c
Compare
be55be8
to
7579dcf
Compare
66e8a9c
to
037c875
Compare
7579dcf
to
80275dd
Compare
d43bb18
to
da4e5df
Compare
80275dd
to
9419a30
Compare
58ae02a
to
297a919
Compare
bfad61c
to
1ab8ed2
Compare
20fd732
to
42d97c0
Compare
42d97c0
to
7e265a4
Compare
ErrSupplierInvalidQueryRequest = sdkerrors.Register(ModuleName, 11, "invalid query request") | ||
ErrSupplierClaimNotFound = sdkerrors.Register(ModuleName, 12, "claim not found") | ||
ErrSupplierProofNotFound = sdkerrors.Register(ModuleName, 13, "proof not found") | ||
ErrSupplierInvalidApplicationAddress = sdkerrors.Register(ModuleName, 3, "invalid application address") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert
if err != nil { | ||
return sdkerrors.Wrapf(ErrSupplierInvalidAddress, "invalid supplierAddress address (%s)", err) | ||
return sdkerrors.Wrapf(ErrSupplierInvalidAddress, "%s", msg.GetSupplierAddress()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return sdkerrors.Wrapf(ErrSupplierInvalidAddress, "%s", msg.GetSupplierAddress()) | |
return sdkerrors.Wrapf(ErrSupplierInvalidAddress, "supplier address %q in create claim message", msg.GetSupplierAddress()) |
Summary
Human Summary
WIP
Issue
SubmitProof
message handling #141The
SubmitProof
msg handler function is receiving proof messages but is not persisting the respective proofs yet.Type of change
Select one or more:
Testing
make go_develop_and_test
Sanity Checklist