Skip to content

Commit

Permalink
test: inject debug msg
Browse files Browse the repository at this point in the history
Signed-off-by: Jingfu Wang <jingfu.wang@coinbase.com>
  • Loading branch information
GeekArthur committed Oct 4, 2023
1 parent 6c0f8b9 commit 93a5025
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/construction/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ func (s *APIService) ConstructionSubmit(
ctx context.Context,
req *types.ConstructionSubmitRequest,
) (*types.TransactionIdentifierResponse, *types.Error) {
fmt.Printf("signed transaction: %s", req.SignedTransaction)

if s.config.Mode != sdkTypes.Online {
return nil, sdkTypes.ErrUnavailableOffline
}
Expand All @@ -57,7 +55,8 @@ func (s *APIService) ConstructionSubmit(
}

if err := s.client.Submit(ctx, &signedTx); err != nil {
return nil, sdkTypes.WrapErr(sdkTypes.ErrInternalError, err)
temp := fmt.Errorf("signed tx: %s: %w", req.SignedTransaction, err)
return nil, sdkTypes.WrapErr(sdkTypes.ErrInternalError, temp)
}

return &types.TransactionIdentifierResponse{
Expand Down

0 comments on commit 93a5025

Please sign in to comment.