Skip to content

Commit

Permalink
Dappkit fixes 3 (#924)
Browse files Browse the repository at this point in the history
* fix: rlp name

* fix: release 9

* fix: reset flag
  • Loading branch information
rodolfopietro97 authored May 29, 2024
1 parent 5bfe70a commit 5f4fe03
Show file tree
Hide file tree
Showing 31 changed files with 360 additions and 344 deletions.
6 changes: 3 additions & 3 deletions apps/sdk-hardhat-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"deploy-testnet": "npx hardhat run scripts/deploy.ts --network vechain_testnet"
},
"dependencies": {
"@vechain/sdk-core": "1.0.0-beta.8",
"@vechain/sdk-hardhat-plugin": "1.0.0-beta.8",
"@vechain/sdk-logging": "1.0.0-beta.8",
"@vechain/sdk-core": "1.0.0-beta.9",
"@vechain/sdk-hardhat-plugin": "1.0.0-beta.9",
"@vechain/sdk-logging": "1.0.0-beta.9",
"@openzeppelin/contracts": "^5.0.2"
},
"devDependencies": {
Expand Down
68 changes: 34 additions & 34 deletions apps/sdk-hardhat-integration/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -969,61 +969,61 @@
dependencies:
"@types/node" "*"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.8.tgz#d41c928077a8ff6c625aba6ce5830e6bf03c11f2"
integrity sha512-YPQqWVAEPKtFrQgg5Gwb6AJM4z6BNGaHxZ6tsnQPDoqT3FgKuv0n8Zor161h1mJQS71vkOUPXFxefaG5e5+zMA==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.9.tgz#ca680e3dabd483778c128fee3deb58090b9ff490"
integrity sha512-fXYTMoyhl9GSnaQ9AOwkfKmJ1glik5EqnybnzPXkexXvJj963vhUm57NyuSRCf/3du7hX8UDculM+GagRa68qA==
dependencies:
"@ethereumjs/rlp" "^5.0.2"
"@noble/ciphers" "^0.5.2"
"@scure/bip32" "^1.4.0"
"@scure/bip39" "^1.3.0"
"@types/elliptic" "^6.4.18"
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-logging" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.9"
"@vechain/sdk-logging" "1.0.0-beta.9"
bignumber.js "^9.1.2"
blakejs "^1.2.1"
elliptic "^6.5.5"
ethers "6.12.1"
fast-json-stable-stringify "^2.1.0"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.8.tgz#adeda992f9e9ddd6ef26008acd05d304ab0d2353"
integrity sha512-0KKm8WmNYn+4+TnprkFj3XhKYlic7pChHdYVbkBYrioceaQvwa7+Fp/RMTruOopHSYSetlHbReuhFnQmBMDhuQ==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.9.tgz#48d8950b9d4086b0fbbf8d208a42555384511509"
integrity sha512-OJx8lXLoPs48prgGWwKNuRyQ+R+EB24Ces30hOq7tkZ4H6A6HnFB7/HAjuLOjTqhWQrCQ8EnOnlMmtk6PNH13g==

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-ethers-adapter/-/sdk-ethers-adapter-1.0.0-beta.8.tgz#a69e85770ea1327e3112fb501d2245dded0af45a"
integrity sha512-ZZUTfA0eyYCN84E/AhVC4iQlB6yvT02Wn49PkdqFz5aDaWc1Ubrbwsa66pZbvNdyj1Sx3Lm/tT/eyo+Bn14WEA==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-ethers-adapter/-/sdk-ethers-adapter-1.0.0-beta.9.tgz#a0739add898a170c6969a3ea39951ac1bcb84205"
integrity sha512-u+Asf1z3Ro75dxNa1hLyYHzHMlN+eR+aPXLtVEHrt+6KmGkxMNnRZ3uF5g6Fm7K6ie9FHECoI5sUt17Z2Felvw==
dependencies:
"@vechain/sdk-core" "1.0.0-beta.8"
"@vechain/sdk-network" "1.0.0-beta.8"
"@vechain/sdk-core" "1.0.0-beta.9"
"@vechain/sdk-network" "1.0.0-beta.9"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-hardhat-plugin/-/sdk-hardhat-plugin-1.0.0-beta.8.tgz#e5f0d8409e312a690dd9c48bc4c35424653ad526"
integrity sha512-mWmWYTXsLZpUTSUiPOpsEU/cUhgPI1+eEg1GOna9nml7/ctz2wK/ahS3LI5SvkD/xdvM84ZKeZLtW8ZnMqM2sw==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-hardhat-plugin/-/sdk-hardhat-plugin-1.0.0-beta.9.tgz#93e43ea1cffbea99d62f6f50e4340bdca22a9591"
integrity sha512-WWZr9vG0PVOPy1rEj6SDKFhxTxtCvmrrt9N0rEkOCysD4X70JomwAU7RT5k8RO06XI9CVgZoBDoXquETbhEQ7w==
dependencies:
"@vechain/sdk-ethers-adapter" "1.0.0-beta.8"
"@vechain/sdk-network" "1.0.0-beta.8"
"@vechain/sdk-ethers-adapter" "1.0.0-beta.9"
"@vechain/sdk-network" "1.0.0-beta.9"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.8.tgz#850254e44b3a163294b60a0f020ff6fdd93ddd32"
integrity sha512-yupdWQ/H4XVrnJysZscpk1z9Nj+3S7mtmJmvPx6ciDOJw0+g8rAMVla+LBXDrhx5xJxFccTjVoobdnTJgDI+kg==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.9.tgz#4daac10f27cd432e98ce9e05fca48193ec93a58e"
integrity sha512-WRiy/R1Z8y3xoURppmyLOyY4Ei3ySd3R8DMs913rR/JZ4k+MG+jD6vxq5Phk8TuZYo+1XAaOMx3Z3Gc6uCxmnA==
dependencies:
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.9"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.8.tgz#bf3b167110915507dfd8d44e0d1e8729f8812f62"
integrity sha512-JaH7LAv4n4nc6ihx4G2m1YS1nqCf+fMco8z2ztiYkdWsfFXTOSqv/T/PVv7YxsvTiFhUPOHol8xqUJNcOp7vCQ==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.9.tgz#63d574fa3b580f9fd6472dbf1188a27a3f3a314a"
integrity sha512-Uf3nYV2rfM8+m41InNu7w3cPrqOYRnAN58/4T5ntE4garFTvI24ipuUPpPB7gMSBoOplWTXibaRDuuZiLo3bLA==
dependencies:
"@types/ws" "^8.5.10"
"@vechain/sdk-core" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-logging" "1.0.0-beta.8"
"@vechain/sdk-core" "1.0.0-beta.9"
"@vechain/sdk-errors" "1.0.0-beta.9"
"@vechain/sdk-logging" "1.0.0-beta.9"
axios "^1.7.2"

abbrev@1:
Expand Down
4 changes: 2 additions & 2 deletions apps/sdk-nextjs-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@vechain/sdk-core": "1.0.0-beta.8",
"@vechain/sdk-network": "1.0.0-beta.8",
"@vechain/sdk-core": "1.0.0-beta.9",
"@vechain/sdk-network": "1.0.0-beta.9",
"install": "^0.13.0",
"next": "14",
"react": "^18",
Expand Down
44 changes: 22 additions & 22 deletions apps/sdk-nextjs-integration/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1052,45 +1052,45 @@
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.8.tgz#d41c928077a8ff6c625aba6ce5830e6bf03c11f2"
integrity sha512-YPQqWVAEPKtFrQgg5Gwb6AJM4z6BNGaHxZ6tsnQPDoqT3FgKuv0n8Zor161h1mJQS71vkOUPXFxefaG5e5+zMA==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.9.tgz#ca680e3dabd483778c128fee3deb58090b9ff490"
integrity sha512-fXYTMoyhl9GSnaQ9AOwkfKmJ1glik5EqnybnzPXkexXvJj963vhUm57NyuSRCf/3du7hX8UDculM+GagRa68qA==
dependencies:
"@ethereumjs/rlp" "^5.0.2"
"@noble/ciphers" "^0.5.2"
"@scure/bip32" "^1.4.0"
"@scure/bip39" "^1.3.0"
"@types/elliptic" "^6.4.18"
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-logging" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.9"
"@vechain/sdk-logging" "1.0.0-beta.9"
bignumber.js "^9.1.2"
blakejs "^1.2.1"
elliptic "^6.5.5"
ethers "6.12.1"
fast-json-stable-stringify "^2.1.0"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.8.tgz#adeda992f9e9ddd6ef26008acd05d304ab0d2353"
integrity sha512-0KKm8WmNYn+4+TnprkFj3XhKYlic7pChHdYVbkBYrioceaQvwa7+Fp/RMTruOopHSYSetlHbReuhFnQmBMDhuQ==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.9.tgz#48d8950b9d4086b0fbbf8d208a42555384511509"
integrity sha512-OJx8lXLoPs48prgGWwKNuRyQ+R+EB24Ces30hOq7tkZ4H6A6HnFB7/HAjuLOjTqhWQrCQ8EnOnlMmtk6PNH13g==

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.8.tgz#850254e44b3a163294b60a0f020ff6fdd93ddd32"
integrity sha512-yupdWQ/H4XVrnJysZscpk1z9Nj+3S7mtmJmvPx6ciDOJw0+g8rAMVla+LBXDrhx5xJxFccTjVoobdnTJgDI+kg==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.9.tgz#4daac10f27cd432e98ce9e05fca48193ec93a58e"
integrity sha512-WRiy/R1Z8y3xoURppmyLOyY4Ei3ySd3R8DMs913rR/JZ4k+MG+jD6vxq5Phk8TuZYo+1XAaOMx3Z3Gc6uCxmnA==
dependencies:
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.9"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.8.tgz#bf3b167110915507dfd8d44e0d1e8729f8812f62"
integrity sha512-JaH7LAv4n4nc6ihx4G2m1YS1nqCf+fMco8z2ztiYkdWsfFXTOSqv/T/PVv7YxsvTiFhUPOHol8xqUJNcOp7vCQ==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.9.tgz#63d574fa3b580f9fd6472dbf1188a27a3f3a314a"
integrity sha512-Uf3nYV2rfM8+m41InNu7w3cPrqOYRnAN58/4T5ntE4garFTvI24ipuUPpPB7gMSBoOplWTXibaRDuuZiLo3bLA==
dependencies:
"@types/ws" "^8.5.10"
"@vechain/sdk-core" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-logging" "1.0.0-beta.8"
"@vechain/sdk-core" "1.0.0-beta.9"
"@vechain/sdk-errors" "1.0.0-beta.9"
"@vechain/sdk-logging" "1.0.0-beta.9"
axios "^1.7.2"

abab@^2.0.6:
Expand Down
2 changes: 1 addition & 1 deletion apps/sdk-node-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "jest"
},
"dependencies": {
"@vechain/sdk-network": "1.0.0-beta.8",
"@vechain/sdk-network": "1.0.0-beta.9",
"axios": "^1.6.8",
"typescript": "^5.3.3"
},
Expand Down
44 changes: 22 additions & 22 deletions apps/sdk-node-integration/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -999,45 +999,45 @@
dependencies:
"@types/yargs-parser" "*"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.8.tgz#d41c928077a8ff6c625aba6ce5830e6bf03c11f2"
integrity sha512-YPQqWVAEPKtFrQgg5Gwb6AJM4z6BNGaHxZ6tsnQPDoqT3FgKuv0n8Zor161h1mJQS71vkOUPXFxefaG5e5+zMA==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-core/-/sdk-core-1.0.0-beta.9.tgz#ca680e3dabd483778c128fee3deb58090b9ff490"
integrity sha512-fXYTMoyhl9GSnaQ9AOwkfKmJ1glik5EqnybnzPXkexXvJj963vhUm57NyuSRCf/3du7hX8UDculM+GagRa68qA==
dependencies:
"@ethereumjs/rlp" "^5.0.2"
"@noble/ciphers" "^0.5.2"
"@scure/bip32" "^1.4.0"
"@scure/bip39" "^1.3.0"
"@types/elliptic" "^6.4.18"
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-logging" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.9"
"@vechain/sdk-logging" "1.0.0-beta.9"
bignumber.js "^9.1.2"
blakejs "^1.2.1"
elliptic "^6.5.5"
ethers "6.12.1"
fast-json-stable-stringify "^2.1.0"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.8.tgz#adeda992f9e9ddd6ef26008acd05d304ab0d2353"
integrity sha512-0KKm8WmNYn+4+TnprkFj3XhKYlic7pChHdYVbkBYrioceaQvwa7+Fp/RMTruOopHSYSetlHbReuhFnQmBMDhuQ==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-errors/-/sdk-errors-1.0.0-beta.9.tgz#48d8950b9d4086b0fbbf8d208a42555384511509"
integrity sha512-OJx8lXLoPs48prgGWwKNuRyQ+R+EB24Ces30hOq7tkZ4H6A6HnFB7/HAjuLOjTqhWQrCQ8EnOnlMmtk6PNH13g==

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.8.tgz#850254e44b3a163294b60a0f020ff6fdd93ddd32"
integrity sha512-yupdWQ/H4XVrnJysZscpk1z9Nj+3S7mtmJmvPx6ciDOJw0+g8rAMVla+LBXDrhx5xJxFccTjVoobdnTJgDI+kg==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-logging/-/sdk-logging-1.0.0-beta.9.tgz#4daac10f27cd432e98ce9e05fca48193ec93a58e"
integrity sha512-WRiy/R1Z8y3xoURppmyLOyY4Ei3ySd3R8DMs913rR/JZ4k+MG+jD6vxq5Phk8TuZYo+1XAaOMx3Z3Gc6uCxmnA==
dependencies:
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.9"

"@vechain/[email protected].8":
version "1.0.0-beta.8"
resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.8.tgz#bf3b167110915507dfd8d44e0d1e8729f8812f62"
integrity sha512-JaH7LAv4n4nc6ihx4G2m1YS1nqCf+fMco8z2ztiYkdWsfFXTOSqv/T/PVv7YxsvTiFhUPOHol8xqUJNcOp7vCQ==
"@vechain/[email protected].9":
version "1.0.0-beta.9"
resolved "https://registry.yarnpkg.com/@vechain/sdk-network/-/sdk-network-1.0.0-beta.9.tgz#63d574fa3b580f9fd6472dbf1188a27a3f3a314a"
integrity sha512-Uf3nYV2rfM8+m41InNu7w3cPrqOYRnAN58/4T5ntE4garFTvI24ipuUPpPB7gMSBoOplWTXibaRDuuZiLo3bLA==
dependencies:
"@types/ws" "^8.5.10"
"@vechain/sdk-core" "1.0.0-beta.8"
"@vechain/sdk-errors" "1.0.0-beta.8"
"@vechain/sdk-logging" "1.0.0-beta.8"
"@vechain/sdk-core" "1.0.0-beta.9"
"@vechain/sdk-errors" "1.0.0-beta.9"
"@vechain/sdk-logging" "1.0.0-beta.9"
axios "^1.7.2"

acorn-walk@^8.1.1:
Expand Down
10 changes: 5 additions & 5 deletions docs/encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ By supporting ABI and RLP encoding handling, VeChainSDK equips developers with t
const profile = {
name: 'clause',
kind: [
{ name: 'to', kind: new RLP.OptionalFixedHexBlobKind(20) },
{ name: 'value', kind: new RLP.NumericKind(32) },
{ name: 'data', kind: new RLP.HexBlobKind() }
{ name: 'to', kind: new RLP_CODER.OptionalFixedHexBlobKind(20) },
{ name: 'value', kind: new RLP_CODER.NumericKind(32) },
{ name: 'data', kind: new RLP_CODER.HexBlobKind() }
]
};

Expand All @@ -119,9 +119,9 @@ const clause = {
data: '0x'
};

// 3 - RLP Instance to encode and decode
// 3 - RLP_CODER Instance to encode and decode

const rlp = new RLP.Profiler(profile);
const rlp = new RLP_CODER.Profiler(profile);

// Encoding and Decoding
const data = rlp.encodeObject(clause);
Expand Down
12 changes: 6 additions & 6 deletions docs/examples/encoding/rlp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RLP } from '@vechain/sdk-core';
import { RLP_CODER } from '@vechain/sdk-core';
import { expect } from 'expect';

// START_SNIPPET: RlpSnippet
Expand All @@ -8,9 +8,9 @@ import { expect } from 'expect';
const profile = {
name: 'clause',
kind: [
{ name: 'to', kind: new RLP.OptionalFixedHexBlobKind(20) },
{ name: 'value', kind: new RLP.NumericKind(32) },
{ name: 'data', kind: new RLP.HexBlobKind() }
{ name: 'to', kind: new RLP_CODER.OptionalFixedHexBlobKind(20) },
{ name: 'value', kind: new RLP_CODER.NumericKind(32) },
{ name: 'data', kind: new RLP_CODER.HexBlobKind() }
]
};

Expand All @@ -22,9 +22,9 @@ const clause = {
data: '0x'
};

// 3 - RLP Instance to encode and decode
// 3 - RLP_CODER Instance to encode and decode

const rlp = new RLP.Profiler(profile);
const rlp = new RLP_CODER.Profiler(profile);

// Encoding and Decoding
const data = rlp.encodeObject(clause);
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"description": "Documentation for the SDK with examples",
"author": "vechain Foundation",
"license": "MIT",
Expand All @@ -20,7 +20,7 @@
"test:examples:solo": "(yarn start-thor-solo && yarn test:examples && yarn stop-thor-solo) || yarn stop-thor-solo"
},
"dependencies": {
"@vechain/sdk-core": "1.0.0-beta.8",
"@vechain/sdk-core": "1.0.0-beta.9",
"typescript": "^5.4.4"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vechain/sdk-core",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"description": "Includes modules for fundamental operations like hashing and cryptography",
"author": "vechain Foundation",
"license": "MIT",
Expand Down Expand Up @@ -39,8 +39,8 @@
"@scure/bip32": "^1.4.0",
"@scure/bip39": "^1.3.0",
"@types/elliptic": "^6.4.18",
"@vechain/sdk-errors": "1.0.0-beta.8",
"@vechain/sdk-logging": "1.0.0-beta.8",
"@vechain/sdk-errors": "1.0.0-beta.9",
"@vechain/sdk-logging": "1.0.0-beta.9",
"bignumber.js": "^9.1.2",
"blakejs": "^1.2.1",
"elliptic": "^6.5.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/assertions/rlp/rlp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, RLP as RLPError, RLP } from '@vechain/sdk-errors';
import { assert, RLP_ERRORS } from '@vechain/sdk-errors';
import { type RLPInput } from '../../encoding';

/**
Expand All @@ -18,7 +18,7 @@ function assertIsValidBuffer(
assert(
`assertIsValidBuffer - ${methodName}`,
Buffer.isBuffer(bufferToCheck),
RLP.INVALID_RLP,
RLP_ERRORS.INVALID_RLP,
`Validation error: Expected a Buffer type in ${context}.`,
{
bufferToCheck,
Expand All @@ -44,7 +44,7 @@ function assertIsArray<ArrayType>(
assert(
`assertIsArray - ${methodName}`,
Array.isArray(arrayToCheck),
RLPError.INVALID_RLP,
RLP_ERRORS.INVALID_RLP,
`Validation error: Expected an array in ${context}.`,
{
context
Expand Down
Loading

0 comments on commit 5f4fe03

Please sign in to comment.