Skip to content

Commit 651fc55

Browse files
committed
Correct function parameters for previous
1 parent 8c8d23d commit 651fc55

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/rest_blockfrost/src/handlers/blocks.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ pub async fn handle_blocks_hash_number_next_blockfrost(
446446
pub async fn handle_blocks_hash_number_previous_blockfrost(
447447
context: Arc<Context<Message>>,
448448
params: Vec<String>,
449+
query_params: HashMap<String, String>,
449450
handlers_config: Arc<HandlersConfig>,
450451
) -> Result<RESTResponse> {
451452
let param = match params.as_slice() {

modules/rest_blockfrost/src/rest_blockfrost.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl BlockfrostREST {
260260
);
261261

262262
// Handler for /blocks/{hash_or_number}/previous
263-
register_handler(
263+
register_handler_with_query(
264264
context.clone(),
265265
DEFAULT_HANDLE_BLOCKS_HASH_NUMBER_PREVIOUS_TOPIC,
266266
handlers_config.clone(),

0 commit comments

Comments
 (0)