File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " utxo-orderbook-sdk" ,
3
3
"description" : " " ,
4
- "version" : " 0.0.6 " ,
4
+ "version" : " 0.0.7 " ,
5
5
"license" : " Apache-2.0" ,
6
6
"main" : " dist/cjs/index.js" ,
7
7
"module" : " dist/mjs/index.js" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { InputUtxos } from '../requests/params';
3
3
4
4
export const convertUTxO = ( utxo : UTxO ) : InputUtxos => ( {
5
5
tx_hash : utxo . input . txHash ,
6
- tx_id : utxo . input . outputIndex ,
6
+ tx_id : utxo . input . outputIndex . toString ( ) ,
7
7
amount : utxo . output . amount ,
8
8
address : utxo . output . address ,
9
9
} ) ;
@@ -12,7 +12,7 @@ export const convertUTxOs = (utxos: UTxO[]): InputUtxos[] => utxos.map(convertUT
12
12
13
13
export const convertTxInParameter = ( txIn : TxInParameter ) : InputUtxos => ( {
14
14
tx_hash : txIn . txHash ,
15
- tx_id : txIn . txIndex ,
15
+ tx_id : txIn . txIndex . toString ( ) ,
16
16
amount : txIn . amount || [ ] ,
17
17
address : txIn . address || '' ,
18
18
} ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Asset } from '@meshsdk/core';
2
2
3
3
export type InputUtxos = {
4
4
tx_hash : string ;
5
- tx_id : number ;
5
+ tx_id : string ;
6
6
amount : Asset [ ] ;
7
7
address : string ;
8
8
} ;
You can’t perform that action at this time.
0 commit comments