Skip to content

Commit

Permalink
Return resp instead of nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
htiennv committed Jan 2, 2024
1 parent 7e966e8 commit 747669d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/user/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ func (s *Signer) SubmitPayForBlob(ctx context.Context, blobs []*blob.Blob, opts
return nil, err
}
if resp.Code != 0 {
return nil, fmt.Errorf("tx failed with code %d: %s", resp.Code, resp.RawLog)
// TODO(htienv): Should return nil here?
return resp, fmt.Errorf("tx failed with code %d: %s", resp.Code, resp.RawLog)
}

return s.ConfirmTx(ctx, resp.TxHash)
Expand Down

0 comments on commit 747669d

Please sign in to comment.