Skip to content

Commit

Permalink
query param for get tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed May 6, 2022
1 parent 5ae1f1f commit cb62755
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cardano_wallet/shelley.rb
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ def submit(wid, transaction)

# Get tx by id
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getTransaction
def get(wid, tx_id)
self.class.get("/wallets/#{wid}/transactions/#{tx_id}")
def get(wid, tx_id, query = {})
query_formatted = query.empty? ? '' : Utils.to_query(query)
self.class.get("/wallets/#{wid}/transactions/#{tx_id}#{query_formatted}")
end

# List all wallet's transactions
Expand Down

0 comments on commit cb62755

Please sign in to comment.