We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62e0949 commit 84b3f49Copy full SHA for 84b3f49
tools/index.ts
@@ -53,7 +53,7 @@ async function getClaimInfo(txHash: string): Promise<ClaimInfo> {
53
throw new Error("No transaction found");
54
}
55
56
- if (results[0]?.counterpart_chain_tx) {
+ if (results[0]?.counterpart_chain_tx && results[0]?.counterpart_chain_tx?.hash !== '') {
57
console.log(
58
"Transaction already claimed, hash:",
59
results[0]?.counterpart_chain_tx?.hash
@@ -124,6 +124,7 @@ async function sendClaimTransaction(
124
});
125
126
console.log("Transaction sent successfully!, hash:", hash);
127
+
128
return hash;
129
130
0 commit comments