sort txs
This commit is contained in:
parent
2f7d2c4ff5
commit
3b2c658340
@ -9,12 +9,10 @@ const props = defineProps({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const txs = computed(() => {
|
const txs = computed(() => {
|
||||||
return (
|
return props.value?.map((x) => ({
|
||||||
props.value?.map((x) => ({
|
|
||||||
hash: hashTx(fromBase64(x)),
|
hash: hashTx(fromBase64(x)),
|
||||||
tx: decodeTxRaw(fromBase64(x)),
|
tx: decodeTxRaw(fromBase64(x)),
|
||||||
})) || []
|
})) || []
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const format = useFormatter();
|
const format = useFormatter();
|
||||||
|
@ -61,7 +61,7 @@ export const useBaseStore = defineStore('baseStore', {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
return txs;
|
return txs.sort((a, b) => {return Number(b.height) - Number(a.height)});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
Loading…
Reference in New Issue
Block a user