Skip to content

Commit

Permalink
fix(cardano-services-client): correct blockfrost tx submit request body
Browse files Browse the repository at this point in the history
it has to be binary, otherwise Blockfrost responds with 400

this bug wasn't caught initially because we're not using
BlockfrostTxSubmitProvider in our e2e test suite
  • Loading branch information
mkazlauskas committed Dec 16, 2024
1 parent 3da1f4a commit 442dbaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class BlockfrostTxSubmitProvider extends BlockfrostProvider implements Tx
async submitTx({ signedTransaction }: SubmitTxArgs): Promise<void> {
// @ todo handle context and resolutions
await this.request<string>('tx/submit', {
body: signedTransaction,
body: Buffer.from(signedTransaction, 'hex'),
headers: { 'Content-Type': 'application/cbor' },
method: 'POST'
});
Expand Down

0 comments on commit 442dbaf

Please sign in to comment.