Skip to content
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

Differentiate between contract and system error #465

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Conversation

chipshort
Copy link
Collaborator

closes #398

This should also allow wasmd to handle contract errors and vm errors differently

@webmaster128 webmaster128 added this to the 2.0.0 milestone Oct 30, 2023
ibc_test.go Outdated Show resolved Hide resolved
@@ -207,7 +201,7 @@ func (vm *VM) Query(
gasMeter GasMeter,
gasLimit uint64,
deserCost types.UFraction,
) ([]byte, uint64, error) {
) (*types.QueryResponse, uint64, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should become a "result" too, but we can do that separately: #475

lib.go Outdated Show resolved Hide resolved
lib.go Outdated Show resolved Hide resolved
lib.go Outdated Show resolved Hide resolved
lib.go Outdated Show resolved Hide resolved
lib.go Outdated Show resolved Hide resolved
lib.go Outdated Show resolved Hide resolved
lib.go Outdated Show resolved Hide resolved
lib.go Outdated Show resolved Hide resolved
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM, thanks. Could your rebase this to latest main? This should solve the audit CI fail.

@chipshort chipshort merged commit 0b3a7ad into main Nov 21, 2023
13 checks passed
@chipshort chipshort deleted the 398-nested-errors branch November 21, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

func (vm *VM) IBCPacketReceive consistency
2 participants