Skip to content

Commit

Permalink
Merge branch 'fix-bug-in-cardano-chain' into 'dev'
Browse files Browse the repository at this point in the history
fix bug in CardanoChain.rawTxToPaymentTransaction

See merge request ergo/rosen-bridge/rosen-chains!78
  • Loading branch information
zargarzadehm committed Nov 28, 2023
2 parents d560cda + 78f21a5 commit 0f69ad8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/chains/cardano/lib/CardanoChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ class CardanoChain extends AbstractUtxoChain<CardanoUtxo> {
const inputs = tx.body().inputs();
for (let i = 0; i < inputs.len(); i++) {
const utxoInfo = inputs.get(i);
const boxId = `${utxoInfo.transaction_id().to_hex()}.${utxoInfo.index}`;
const boxId = `${utxoInfo.transaction_id().to_hex()}.${utxoInfo.index()}`;
inputBoxes.push(await this.network.getUtxo(boxId));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/chains/cardano/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/cardano",
"version": "3.1.0",
"version": "3.1.1",
"description": "this project contains cardano chain for Rosen-bridge",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/cardano-blockfrost/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rosen-chains/cardano-blockfrost-network",
"version": "1.1.0",
"version": "1.1.1",
"description": "a package to be used as network api provider for @rosen-chains/cardano package",
"repository": "@rosen-chains/cardano-blockfrost-network",
"license": "GPL-3.0",
Expand Down Expand Up @@ -37,6 +37,6 @@
"@rosen-bridge/abstract-logger": "^1.0.0",
"@rosen-bridge/rosen-extractor": "^2.0.0",
"@rosen-chains/abstract-chain": "^3.1.0",
"@rosen-chains/cardano": "^3.1.0"
"@rosen-chains/cardano": "^3.1.1"
}
}
4 changes: 2 additions & 2 deletions 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": "4.1.0",
"version": "4.1.1",
"description": "cardano koios network package for rosen cardano chain",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
Expand All @@ -26,7 +26,7 @@
"@rosen-bridge/rosen-extractor": "^2.0.0",
"@rosen-bridge/tokens": "^1.0.0",
"@rosen-chains/abstract-chain": "^3.1.0",
"@rosen-chains/cardano": "^3.1.0",
"@rosen-chains/cardano": "^3.1.1",
"@rosen-clients/cardano-koios": "^2.0.1"
},
"devDependencies": {
Expand Down

0 comments on commit 0f69ad8

Please sign in to comment.