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

Update OnRecvPacket method to panic when an error is returned by the VM #1298

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

pinosu
Copy link
Contributor

@pinosu pinosu commented Mar 27, 2023

Resolves #1220

@pinosu pinosu requested a review from alpe March 27, 2023 13:33
@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Merging #1298 (03c264c) into main (5b59886) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1298      +/-   ##
==========================================
+ Coverage   59.46%   59.49%   +0.02%     
==========================================
  Files          57       57              
  Lines        7320     7320              
==========================================
+ Hits         4353     4355       +2     
+ Misses       2653     2652       -1     
+ Partials      314      313       -1     
Impacted Files Coverage Δ
x/wasm/keeper/relay.go 96.47% <100.00%> (ø)

... and 1 file with indirect coverage changes

Copy link
Contributor

@alpe alpe left a comment

Choose a reason for hiding this comment

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

LGTM 🏄

},
"error": {
contract: &errorReceiverContract{},
setupContract: func(t *testing.T, contract wasmtesting.IBCContractCallbacks, chain *wasmibctesting.TestChain) {
c := contract.(*errorReceiverContract)
c.t = t
},
expChainABalanceDiff: sdk.ZeroInt(),
expChainBBalanceDiff: sdk.ZeroInt(),
expChainAPendingSendPackets: 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 good test

@alpe alpe added the backport/v0.3x Backport patches to sdk45 release branch label Mar 29, 2023
@alpe alpe merged commit 5edfd6c into main Mar 29, 2023
mergify bot pushed a commit that referenced this pull request Mar 29, 2023
by the VM

(cherry picked from commit 5edfd6c)

# Conflicts:
#	x/wasm/keeper/relay.go
#	x/wasm/relay_test.go
@alpe alpe deleted the 1220-add_panic branch March 31, 2023 08:13
alpe added a commit that referenced this pull request Mar 31, 2023
* main:
  Bump bufbuild/buf-setup-action from 1.15.1 to 1.16.0
  Use gov v1 instead of v1beta1 for new proposals (#1269)
  Update OnRecvPacket method to panic when an error is returned (#1298)
  Bump actions/checkout from 3.4.0 to 3.5.0
  Add source for Wasm magic number
pinosu added a commit that referenced this pull request Apr 4, 2023
…VM (backport #1298) (#1303)

* Update OnRecvPacket method to panic when an error is returned (#1298)

by the VM

(cherry picked from commit 5edfd6c)

# Conflicts:
#	x/wasm/keeper/relay.go
#	x/wasm/relay_test.go

* fix conflicts

---------

Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com>
Co-authored-by: Pino' Surace <pino.surace@live.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.3x Backport patches to sdk45 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let contract fully abort IBC receive in certain case
2 participants