Skip to content

Commit

Permalink
Merge pull request #82 from bandprotocol/clean-up
Browse files Browse the repository at this point in the history
Clean up code
  • Loading branch information
taobun authored May 24, 2021
2 parents 2fd7500 + 3f9d5c2 commit 77e3743
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 181 deletions.
179 changes: 0 additions & 179 deletions x/oracle/client/common/verify_request.go

This file was deleted.

2 changes: 0 additions & 2 deletions x/oracle/keeper/owasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,8 @@ func (k Keeper) ResolveRequest(ctx sdk.Context, reqID types.RequestID) {
output, err := k.owasmVM.Execute(code, convertToOwasmGas(req.GetExecuteGas()), types.MaxDataSize, env)
if err != nil {
k.ResolveFailure(ctx, reqID, err.Error())
// TODO: send response to IBC module on fail request
} else if env.Retdata == nil {
k.ResolveFailure(ctx, reqID, "no return data")
// TODO: send response to IBC module on fail request
} else {
k.ResolveSuccess(ctx, reqID, env.Retdata, output.GasUsed)
}
Expand Down

0 comments on commit 77e3743

Please sign in to comment.