From 3b55bf1b9bc6a0e03a74d20405374e6b33996946 Mon Sep 17 00:00:00 2001 From: nahyunbak Date: Mon, 16 Sep 2024 19:29:16 +0900 Subject: [PATCH] fix: polkladot method --- dist/chains/polkadot/methods.d.ts.map | 2 +- dist/chains/polkadot/methods.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/dist/chains/polkadot/methods.d.ts.map b/dist/chains/polkadot/methods.d.ts.map index 6f3e8bfd..614132a9 100644 --- a/dist/chains/polkadot/methods.d.ts.map +++ b/dist/chains/polkadot/methods.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../src/chains/polkadot/methods.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AAUvD,OAAO,EAAoB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAiJlD,eAAO,MAAM,eAAe;;;CAoB3B,CAAC;AAEF,wBAAsB,WAAW,CAAC,EAChC,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,KAAK,GACN,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;CACnB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAyLnC;AAED,wBAAsB,WAAW,CAC/B,EACE,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,aAAa,EACb,IAAI,EACJ,OAAO,EACP,KAAK,EACL,iBAAiB,GAClB,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAaA,OAAO,CAAC,uBAAuB,CAAC,CA0DlC;AAED,eAAO,MAAM,gBAAgB,yIAa1B;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,qCA+BA,CAAC"} \ No newline at end of file +{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../src/chains/polkadot/methods.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AAUvD,OAAO,EAAoB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA+IlD,eAAO,MAAM,eAAe;;;CAoB3B,CAAC;AAEF,wBAAsB,WAAW,CAAC,EAChC,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,MAAM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;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,qCA+BA,CAAC"} \ No newline at end of file diff --git a/dist/chains/polkadot/methods.js b/dist/chains/polkadot/methods.js index ac6bde72..cb507eb6 100644 --- a/dist/chains/polkadot/methods.js +++ b/dist/chains/polkadot/methods.js @@ -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()]; @@ -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*/]; } }); }); })