Skip to content

Commit

Permalink
Merge branch '66-fix-gettxconfirmation-in-networks' into 'dev'
Browse files Browse the repository at this point in the history
fix bug in koiosNetwork.getTxConfirmation

Closes #66

See merge request ergo/rosen-bridge/rosen-chains!76
  • Loading branch information
vorujack committed Nov 19, 2023
2 parents ca623c8 + 0ef2df0 commit 6020327
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion packages/networks/cardano-koios/lib/CardanoKoiosNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class CardanoKoiosNetwork extends AbstractCardanoNetwork {
)}`
);
const confirmation = res[0].num_confirmations;
if (confirmation) return Number(confirmation);
if (confirmation !== undefined && confirmation !== null)
return Number(confirmation);
return -1;
})
.catch((e) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/networks/cardano-koios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/cardano-koios-network",
"version": "3.1.1",
"version": "3.1.2",
"description": "cardano koios network package for rosen cardano chain",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand Down

0 comments on commit 6020327

Please sign in to comment.