Skip to content

Commit

Permalink
chore: upgrade CSL (chang-ready)
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Nov 26, 2024
1 parent ffe1baf commit 47a31cb
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@blockfrost/blockfrost-js": "5.7.0",
"@emurgo/cardano-serialization-lib-nodejs": "^12.1.1",
"@emurgo/cardano-serialization-lib-nodejs": "^13.2.0",
"@sentry/integrations": "^7.85.0",
"@sentry/node": "^7.85.0",
"@sentry/tracing": "^7.85.0",
Expand Down
4 changes: 3 additions & 1 deletion test/e2e/tx-builder/helpers/compose-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export const composeTransaction = (

// Build transaction
const txBody = txBuilder.build();
const txHash = Buffer.from(CardanoWasm.hash_transaction(txBody).to_bytes()).toString('hex');
const txHash = CardanoWasm.FixedTransaction.new_from_body_bytes(txBody.to_bytes())
.transaction_hash()
.to_hex();

return {
txHash,
Expand Down
5 changes: 4 additions & 1 deletion test/e2e/tx-builder/helpers/sign-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export const signTransaction = (
txBody: CardanoWasm.TransactionBody,
signKey: CardanoWasm.PrivateKey,
): CardanoWasm.Transaction => {
const txHash = CardanoWasm.hash_transaction(txBody);
const txHash = CardanoWasm.FixedTransaction.new_from_body_bytes(
txBody.to_bytes(),
).transaction_hash();

const witnesses = CardanoWasm.TransactionWitnessSet.new();
const vkeyWitnesses = CardanoWasm.Vkeywitnesses.new();

Expand Down
2 changes: 1 addition & 1 deletion yarn-project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ cacheEntries = {
"@blockfrost/blockfrost-js@npm:5.7.0" = { filename = "@blockfrost-blockfrost-js-npm-5.7.0-b1465da158-9e960ca8ee.zip"; sha512 = "9e960ca8ee332350008da94b6d5eadc6fd80c468c34086bc9e2872561cc5191b365eb5517655548512801a8e44809d687acbdc778be21018341525bffc12a47e"; };
"@blockfrost/openapi@npm:0.1.70-beta.0" = { filename = "@blockfrost-openapi-npm-0.1.70-beta.0-a0fb76c687-4171f7c75f.zip"; sha512 = "4171f7c75f08763d03f67c5fac38e8dcb93e569ef72718afd4025f7a201e456a8a0ef732262ee6ae9d26596536d2037ecec92c9906894589211f06019a798563"; };
"@emurgo/cardano-serialization-lib-nodejs@npm:11.5.0" = { filename = "@emurgo-cardano-serialization-lib-nodejs-npm-11.5.0-8c2e047031-3fff844800.zip"; sha512 = "3fff8448001c6d70807ef8e1a80a663ef60381e55bfd26c0f1b644e096895da7298fb991ac86670d4c5aee2e3e417e44ac80ab59080f7af107d8fa89906f9075"; };
"@emurgo/cardano-serialization-lib-nodejs@npm:12.1.1" = { filename = "@emurgo-cardano-serialization-lib-nodejs-npm-12.1.1-b2f1c5eb20-a165613d69.zip"; sha512 = "a165613d695b9c10084be2784cdcdebc26ac7415025497f9c17ef08f7d7f786cb7b8318b32a0282261683b240e162c4916ec7a1470590265b2aad8b7d4ea2e5e"; };
"@emurgo/cardano-serialization-lib-nodejs@npm:13.2.0" = { filename = "@emurgo-cardano-serialization-lib-nodejs-npm-13.2.0-1a4901e829-b8483dd74e.zip"; sha512 = "b8483dd74ec902da607f0ee00259674ba1794784fafd322948043dd4dfdbddecc81f6546fc98c9a57810639f91110cf76be7755a138a3506af6233954cfe449e"; };
"@emurgo/cip14-js@npm:3.0.1" = { filename = "@emurgo-cip14-js-npm-3.0.1-6011030ea2-9eaf312410.zip"; sha512 = "9eaf3124108e8c252a745de9ef1f334ab26a32271077b00fe0ea2a06e40838dd435165dac523ebd4d851ae7a94d8c56766dabc372aabffedd36551c798c607c5"; };
"@esbuild/darwin-arm64@npm:0.19.8" = { filename = "@esbuild-darwin-arm64-npm-0.19.8-b1920f84ba-869c5ded22.zip"; sha512 = "869c5ded228fe18c5d1790672336ff7cabd20aff5af98b6ce5461048d063a28bd2c89ff495b349ce044628f829836fde6cbbdb00a39d663099f5675f78be2a2d"; };
"@esbuild/darwin-x64@npm:0.19.8" = { filename = "@esbuild-darwin-x64-npm-0.19.8-36f500fc51-10.zip"; sha512 = "00cc81d47552ec955de047f29a844b39dd03cbf12cd0f08d01e5e5f808a53ef0838777f9a96a0cfcc8e160a6feb3e8a2af7775b39ee585c3555af0ea01c07065"; };
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ __metadata:
resolution: "@blockfrost/blockfrost-websocket-link@workspace:."
dependencies:
"@blockfrost/blockfrost-js": "npm:5.7.0"
"@emurgo/cardano-serialization-lib-nodejs": "npm:^12.1.1"
"@emurgo/cardano-serialization-lib-nodejs": "npm:^13.2.0"
"@esbuild/darwin-arm64": "npm:0.19.8"
"@esbuild/linux-x64": "npm:0.19.8"
"@eslint/compat": "npm:^1.2.1"
Expand Down Expand Up @@ -161,10 +161,10 @@ __metadata:
languageName: node
linkType: hard

"@emurgo/cardano-serialization-lib-nodejs@npm:^12.1.1":
version: 12.1.1
resolution: "@emurgo/cardano-serialization-lib-nodejs@npm:12.1.1"
checksum: a165613d695b9c10084be2784cdcdebc26ac7415025497f9c17ef08f7d7f786cb7b8318b32a0282261683b240e162c4916ec7a1470590265b2aad8b7d4ea2e5e
"@emurgo/cardano-serialization-lib-nodejs@npm:^13.2.0":
version: 13.2.0
resolution: "@emurgo/cardano-serialization-lib-nodejs@npm:13.2.0"
checksum: b8483dd74ec902da607f0ee00259674ba1794784fafd322948043dd4dfdbddecc81f6546fc98c9a57810639f91110cf76be7755a138a3506af6233954cfe449e
languageName: node
linkType: hard

Expand Down

0 comments on commit 47a31cb

Please sign in to comment.