fix: block error
This commit is contained in:
parent
22987636a8
commit
af457a3a95
@ -23,12 +23,16 @@ export const useBlockModule = defineStore('blockModule', {
|
|||||||
txsInRecents() {
|
txsInRecents() {
|
||||||
const txs = [] as { hash: string; tx: DecodedTxRaw }[];
|
const txs = [] as { hash: string; tx: DecodedTxRaw }[];
|
||||||
this.recents.forEach((x) =>
|
this.recents.forEach((x) =>
|
||||||
x.block?.data?.txs.forEach((tx: Uint8Array) =>
|
x.block?.data?.txs.forEach((tx: Uint8Array) => {
|
||||||
txs.push({
|
if (tx) {
|
||||||
hash: hashTx(tx),
|
try {
|
||||||
tx: decodeTxRaw(tx),
|
txs.push({
|
||||||
})
|
hash: hashTx(tx),
|
||||||
)
|
tx: decodeTxRaw(tx),
|
||||||
|
});
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
})
|
||||||
);
|
);
|
||||||
return txs;
|
return txs;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user