Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/coinbase/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ module Coinbase
DEFAULT_PAGE_LIMIT = 100

# The default page limit for transaction paginated API request.
DEFAULT_TRANSACTION_PAGE_LIMIT = 10
DEFAULT_TRANSACTION_PAGE_LIMIT = 1
end
4 changes: 2 additions & 2 deletions spec/support/shared_examples/address_transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
before do
allow(transaction_history_api)
.to receive(:list_address_transactions)
.with(normalized_network_id, address_id, { limit: 10, page: nil })
.with(normalized_network_id, address_id, { limit: 1, page: nil })
.and_return(response)
end

Expand All @@ -36,7 +36,7 @@
end

let(:api) { transaction_history_api }
let(:fetch_params) { ->(page) { [normalized_network_id, address_id, { limit: 10, page: page }] } }
let(:fetch_params) { ->(page) { [normalized_network_id, address_id, { limit: 1, page: page }] } }
let(:resource_list_klass) { Coinbase::Client::AddressTransactionList }
let(:item_klass) { Coinbase::Transaction }
let(:item_initialize_args) { nil }
Expand Down
Loading