Skip to content

Commit

Permalink
fix: metadata types
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvolek committed Sep 14, 2021
1 parent 5785740 commit 5c7dfb0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.1]

### Fixed

- `metadataTxsLabels` and `metadataTxsLabel` endpoints types

## [2.0.0]

### ⚠️ Breaking change - Fix
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/blockfrost-js",
"version": "2.0.0",
"version": "2.0.1",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",
"keywords": [
"blockfrost",
Expand Down
4 changes: 2 additions & 2 deletions src/endpoints/api/metadata/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BlockFrostAPI } from '../../../index';
export async function metadataTxsLabels(
this: BlockFrostAPI,
pagination?: PaginationOptions,
): Promise<components['schemas']['tx_metadata_label_json']> {
): Promise<components['schemas']['tx_metadata_labels']> {
const paginationOptions = getPaginationOptions(pagination);

return new Promise((resolve, reject) => {
Expand All @@ -30,7 +30,7 @@ export async function metadataTxsLabel(
this: BlockFrostAPI,
label: string,
pagination?: PaginationOptions,
): Promise<components['schemas']['tx_metadata_labels']> {
): Promise<components['schemas']['tx_metadata_label_json']> {
const paginationOptions = getPaginationOptions(pagination);

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 5c7dfb0

Please sign in to comment.