Skip to content

Commit 84b3f49

Browse files
committed
fix counterpart_chain_tx checking
1 parent 62e0949 commit 84b3f49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function getClaimInfo(txHash: string): Promise<ClaimInfo> {
5353
throw new Error("No transaction found");
5454
}
5555

56-
if (results[0]?.counterpart_chain_tx) {
56+
if (results[0]?.counterpart_chain_tx && results[0]?.counterpart_chain_tx?.hash !== '') {
5757
console.log(
5858
"Transaction already claimed, hash:",
5959
results[0]?.counterpart_chain_tx?.hash
@@ -124,6 +124,7 @@ async function sendClaimTransaction(
124124
});
125125

126126
console.log("Transaction sent successfully!, hash:", hash);
127+
127128
return hash;
128129
}
129130

0 commit comments

Comments
 (0)