Skip to content

Commit

Permalink
up url
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellzer committed Dec 23, 2024
1 parent 1131419 commit 5142c02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/trx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const vault: FireblocksIntegration = {

try {
console.log('crafting...');
const tx = await k.client.POST('/trx/stake' as '/trx/transaction/stake', {
const tx = await k.client.POST('/trx/transaction/stake', {
body: {
account_id: '',
owner_address: 'TAERHY5gyzDRmAaeqqa6C4Fuyc9HLnnHx7',
Expand All @@ -34,7 +34,7 @@ try {
const signResponse = await k.fireblocks.signTrxTx(vault, tx.data.data);

console.log('broadcasting...');
const broadcastedTx = await k.client.POST('/trx/broadcast' as '/trx/transaction/broadcast', {
const broadcastedTx = await k.client.POST('/trx/transaction/broadcast', {
body: {
signed_tx_serialized: signResponse.signed_tx.data.signed_tx_serialized,
},
Expand Down
2 changes: 1 addition & 1 deletion src/fireblocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ export class FireblocksService {

const signature = `${fbTx.signedMessages[0].signature.fullSig}0${fbTx.signedMessages[0].signature.v}`;

const preparedTx = await this.client.POST('/trx/prepare' as '/trx/transaction/prepare', {
const preparedTx = await this.client.POST('/trx/transaction/prepare', {
body: {
unsigned_tx_serialized: tx.unsigned_tx_serialized,
signature: signature,
Expand Down

0 comments on commit 5142c02

Please sign in to comment.