Skip to content

Commit

Permalink
Return full result on IBCPacketRecv
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Dec 13, 2021
1 parent 7836fc2 commit c300106
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ func (vm *VM) IBCPacketReceive(
gasMeter GasMeter,
gasLimit uint64,
deserCost types.UFraction,
) (*types.IBCReceiveResponse, uint64, error) {
) (*types.IBCReceiveResult, uint64, error) {
envBin, err := json.Marshal(env)
if err != nil {
return nil, 0, err
Expand All @@ -542,10 +542,7 @@ func (vm *VM) IBCPacketReceive(
if err != nil {
return nil, gasUsed, err
}
if resp.Err != "" {
return nil, gasUsed, fmt.Errorf("%s", resp.Err)
}
return resp.Ok, gasUsed, nil
return &resp, gasUsed, nil
}

// IBCPacketAck is available on IBC-enabled contracts and is called when an
Expand Down

0 comments on commit c300106

Please sign in to comment.