Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from MeshJS/feature/bump-deps-ver
Browse files Browse the repository at this point in the history
feat: bumping deps version
  • Loading branch information
HinsonSIDAN authored Apr 23, 2024
2 parents d82dbcb + 3c5b97d commit 23250ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@meshsdk/mesh-csl",
"description": "Cardano Off-chain Code APIs built on cardano-serialization-lib",
"version": "0.0.4",
"version": "0.0.5",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down Expand Up @@ -41,8 +41,8 @@
},
"dependencies": {
"@meshsdk/core": "^1.5.10",
"@sidan-lab/sidan-csl-rs-browser": "^0.2.6-beta3",
"@sidan-lab/sidan-csl-rs-nodejs": "^0.2.6-beta3",
"@sidan-lab/sidan-csl-rs-browser": "^0.3.6",
"@sidan-lab/sidan-csl-rs-nodejs": "^0.3.6",
"@types/node": "^18.16.3",
"blakejs": "^1.2.1",
"json-bigint": "^1.0.0"
Expand Down
12 changes: 10 additions & 2 deletions test/utils/address.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { serializeBech32Address } from '../../src';
import { scriptHashToBech32, serializeBech32Address } from '../../src';

describe('Transaction', () => {
describe('Address', () => {
test('serializeBech32Address', () => {
const address =
'addr_test1qqmrzjhtanauj20wg37uk58adyrqfm82a9qr52vdnv0e54r42v0mu8ngky0f5yxmh3wl3z0da2fryk59kavth0u8xhvsufgmc8';
Expand All @@ -13,4 +13,12 @@ describe('Transaction', () => {
'75531fbe1e68b11e9a10dbbc5df889edea92325a85b758bbbf8735d9',
);
});
test('scriptHashToBech32', () => {
const scriptHash = '0049d04cc313681a8390d5ed0484b6803c76d80cd97e71df8e4e5f3a';
const stakeHash = 'bfaa385c8eab7bbdc6c98b50413435b3d02b73de3c644e1384b801d4';
const serializedAddress = scriptHashToBech32(scriptHash, stakeHash);
expect(serializedAddress).toBe(
'addr_test1zqqyn5zvcvfksx5rjr276pyyk6qrcakcpnvhuuwl3e897w4l4gu9er4t0w7udjvt2pqngddn6q4h8h3uv38p8p9cq82q7xtsrh',
);
});
});

0 comments on commit 23250ed

Please sign in to comment.