Skip to content

Commit

Permalink
fix: polkladot method
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyunbak committed Sep 16, 2024
1 parent 77957dc commit 3b55bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/chains/polkadot/methods.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions dist/chains/polkadot/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function signAndSendTransfer(_a) {
message: 'Transfer incomplete',
})];
}
if (!status.isFinalized) return [3 /*break*/, 10];
if (!status) return [3 /*break*/, 9];
if (!isIbc) return [3 /*break*/, 4];
if (!apiTo) return [3 /*break*/, 2];
return [4 /*yield*/, apiTo.rpc.chain.getHeader()];
Expand Down Expand Up @@ -163,11 +163,7 @@ function signAndSendTransfer(_a) {
latestBlockNumber: header ? header.number.toNumber() : -1,
};
return [2 /*return*/, resolve(result_3)];
case 9: return [3 /*break*/, 11];
case 10:
console.log('Transaction status:', JSON.stringify(status));
_d.label = 11;
case 11: return [2 /*return*/];
case 9: return [2 /*return*/];
}
});
}); })
Expand Down

0 comments on commit 3b55bf1

Please sign in to comment.