Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit eb47d75

Browse files
committedFeb 14, 2024
fix: fixing input type
1 parent 686dfba commit eb47d75

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "utxo-orderbook-sdk",
33
"description": "",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"license": "Apache-2.0",
66
"main": "dist/cjs/index.js",
77
"module": "dist/mjs/index.js",

‎src/types/conversion/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { InputUtxos } from '../requests/params';
33

44
export const convertUTxO = (utxo: UTxO): InputUtxos => ({
55
tx_hash: utxo.input.txHash,
6-
tx_id: utxo.input.outputIndex,
6+
tx_id: utxo.input.outputIndex.toString(),
77
amount: utxo.output.amount,
88
address: utxo.output.address,
99
});
@@ -12,7 +12,7 @@ export const convertUTxOs = (utxos: UTxO[]): InputUtxos[] => utxos.map(convertUT
1212

1313
export const convertTxInParameter = (txIn: TxInParameter): InputUtxos => ({
1414
tx_hash: txIn.txHash,
15-
tx_id: txIn.txIndex,
15+
tx_id: txIn.txIndex.toString(),
1616
amount: txIn.amount || [],
1717
address: txIn.address || '',
1818
});

‎src/types/requests/params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Asset } from '@meshsdk/core';
22

33
export type InputUtxos = {
44
tx_hash: string;
5-
tx_id: number;
5+
tx_id: string;
66
amount: Asset[];
77
address: string;
88
};

0 commit comments

Comments
 (0)
Please sign in to comment.