From 9500a4702177eca4abb7d8e5e2cbe4cdb5d28231 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 28 Jul 2022 15:34:47 +0200 Subject: [PATCH] fix: types in txsMetadata chore: chagelog for version 4.2.1 chore: chagelog for version 4.2.1 chore: chagelog for version 4.2.1 --- packages/blockfrost-js/CHANGELOG.MD | 6 ++++++ packages/blockfrost-js/package.json | 2 +- packages/blockfrost-js/src/endpoints/api/txs/index.ts | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/blockfrost-js/CHANGELOG.MD b/packages/blockfrost-js/CHANGELOG.MD index df6044e7..a2dcb93a 100644 --- a/packages/blockfrost-js/CHANGELOG.MD +++ b/packages/blockfrost-js/CHANGELOG.MD @@ -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). +## [4.2.1] + +### Fixed + +- response types in `txsMetadata` + ## [4.2.0] ### Added diff --git a/packages/blockfrost-js/package.json b/packages/blockfrost-js/package.json index cd87f57d..644a0373 100644 --- a/packages/blockfrost-js/package.json +++ b/packages/blockfrost-js/package.json @@ -1,6 +1,6 @@ { "name": "@blockfrost/blockfrost-js", - "version": "4.2.0", + "version": "4.2.1", "description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API", "keywords": [ "blockfrost", diff --git a/packages/blockfrost-js/src/endpoints/api/txs/index.ts b/packages/blockfrost-js/src/endpoints/api/txs/index.ts index 4645ef9d..0331f2df 100644 --- a/packages/blockfrost-js/src/endpoints/api/txs/index.ts +++ b/packages/blockfrost-js/src/endpoints/api/txs/index.ts @@ -135,9 +135,9 @@ export async function txsPoolRetires( export async function txsMetadata( this: BlockFrostAPI, hash: string, -): Promise { +): Promise { return new Promise((resolve, reject) => { - this.instance( + this.instance( `txs/${hash}/metadata`, ) .then(resp => {