Skip to content

Commit

Permalink
Merge pull request #33 from blockfrost/fix-header
Browse files Browse the repository at this point in the history
Fix header in txSubmit
  • Loading branch information
mmahut authored May 2, 2021
2 parents 591dd03 + e519dce commit b5eeba3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
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).

## [0.2.2] - 2021-05-02

### Fixed

- txSubmit header

## [0.2.1] - 2021-04-29

### Changed
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": "0.2.1",
"version": "0.2.2",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",
"files": [
"lib/**/*.js",
Expand Down
3 changes: 1 addition & 2 deletions src/endpoints/txs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ export async function txSubmit(
): Promise<string> {
return new Promise((resolve, reject) => {
axios
.post(`${this.apiUrl}/tx/submit`, {
transaction,
.post(`${this.apiUrl}/tx/submit`, transaction, {
headers: getHeaders(this.projectId, true),
})
.then(resp => {
Expand Down

0 comments on commit b5eeba3

Please sign in to comment.