Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
pinosu committed Apr 4, 2023
1 parent 1a1c7ac commit 8f1584c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
4 changes: 0 additions & 4 deletions x/wasm/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,7 @@ func (k Keeper) OnRecvPacket(
res, gasUsed, execErr := k.wasmVM.IBCPacketReceive(codeInfo.CodeHash, env, msg, prefixStore, cosmwasmAPI, querier, ctx.GasMeter(), gas, costJSONDeserialization)
k.consumeRuntimeGas(ctx, gasUsed)
if execErr != nil {
<<<<<<< HEAD
return nil, sdkerrors.Wrap(types.ErrExecuteFailed, execErr.Error())
=======
panic(execErr)
>>>>>>> 5edfd6c (Update OnRecvPacket method to panic when an error is returned (#1298))
}
if res.Err != "" { // handle error case as before https://github.com/CosmWasm/wasmvm/commit/c300106fe5c9426a495f8e10821e00a9330c56c6
return nil, sdkerrors.Wrap(types.ErrExecuteFailed, res.Err)
Expand Down
17 changes: 3 additions & 14 deletions x/wasm/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,13 @@ func TestFromIBCTransferToContract(t *testing.T) {

transferAmount := sdk.NewInt(1)
specs := map[string]struct {
<<<<<<< HEAD
contract wasmtesting.IBCContractCallbacks
setupContract func(t *testing.T, contract wasmtesting.IBCContractCallbacks, chain *wasmibctesting.TestChain)
expChainABalanceDiff sdk.Int
expChainBBalanceDiff sdk.Int
=======
contract wasmtesting.IBCContractCallbacks
setupContract func(t *testing.T, contract wasmtesting.IBCContractCallbacks, chain *wasmibctesting.TestChain)
expChainAPendingSendPackets int
expChainBPendingSendPackets int
expChainABalanceDiff math.Int
expChainBBalanceDiff math.Int
expChainABalanceDiff sdk.Int
expChainBBalanceDiff sdk.Int
expErr bool
>>>>>>> 5edfd6c (Update OnRecvPacket method to panic when an error is returned (#1298))
}{
"ack": {
contract: &ackReceiverContract{},
Expand Down Expand Up @@ -117,12 +110,8 @@ func TestFromIBCTransferToContract(t *testing.T) {
// when transfer via sdk transfer from A (module) -> B (contract)
coinToSendToB := sdk.NewCoin(sdk.DefaultBondDenom, transferAmount)
timeoutHeight := clienttypes.NewHeight(1, 110)
<<<<<<< HEAD
msg := ibctransfertypes.NewMsgTransfer(path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID, coinToSendToB, chainA.SenderAccount.GetAddress().String(), chainB.SenderAccount.GetAddress().String(), timeoutHeight, 0)
=======

msg := ibctransfertypes.NewMsgTransfer(path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID, coinToSendToB, chainA.SenderAccount.GetAddress().String(), chainB.SenderAccount.GetAddress().String(), timeoutHeight, 0, "")
>>>>>>> 5edfd6c (Update OnRecvPacket method to panic when an error is returned (#1298))
msg := ibctransfertypes.NewMsgTransfer(path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID, coinToSendToB, chainA.SenderAccount.GetAddress().String(), chainB.SenderAccount.GetAddress().String(), timeoutHeight, 0)
_, err := chainA.SendMsgs(msg)
require.NoError(t, err)
require.NoError(t, path.EndpointB.UpdateClient())
Expand Down

0 comments on commit 8f1584c

Please sign in to comment.