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 => {