Skip to content

Commit

Permalink
Merge pull request #226 from blockfrost/tx-metadata-hash
Browse files Browse the repository at this point in the history
fix: types in txsMetadata
  • Loading branch information
slowbackspace authored Jul 28, 2022
2 parents fea730b + 9500a47 commit 3926f1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/blockfrost-js/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).

## [4.2.1]

### Fixed

- response types in `txsMetadata`

## [4.2.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/blockfrost-js/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/blockfrost-js/src/endpoints/api/txs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ export async function txsPoolRetires(
export async function txsMetadata(
this: BlockFrostAPI,
hash: string,
): Promise<components['schemas']['tx_metadata_label_json']> {
): Promise<components['schemas']['tx_content_metadata']> {
return new Promise((resolve, reject) => {
this.instance<components['schemas']['tx_metadata_label_json']>(
this.instance<components['schemas']['tx_content_metadata']>(
`txs/${hash}/metadata`,
)
.then(resp => {
Expand Down

0 comments on commit 3926f1f

Please sign in to comment.