@paraspell/sdk 8.0.2 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +9 -5
package/dist/index.cjs
CHANGED
|
@@ -755,8 +755,8 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
755
755
|
key: "accountToHex",
|
|
756
756
|
value: function accountToHex(address) {
|
|
757
757
|
var isPrefixed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
758
|
-
var
|
|
759
|
-
return
|
|
758
|
+
var hex = this.createAccountId(address);
|
|
759
|
+
return isPrefixed ? hex : hex.slice(2);
|
|
760
760
|
}
|
|
761
761
|
}, {
|
|
762
762
|
key: "callTxMethod",
|
package/dist/index.mjs
CHANGED
|
@@ -754,8 +754,8 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
754
754
|
key: "accountToHex",
|
|
755
755
|
value: function accountToHex(address) {
|
|
756
756
|
var isPrefixed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
757
|
-
var
|
|
758
|
-
return
|
|
757
|
+
var hex = this.createAccountId(address);
|
|
758
|
+
return isPrefixed ? hex : hex.slice(2);
|
|
759
759
|
}
|
|
760
760
|
}, {
|
|
761
761
|
key: "callTxMethod",
|
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/paraspell/xcm-tools.git",
|
|
8
|
+
"directory": "packages/sdk"
|
|
9
|
+
},
|
|
6
10
|
"license": "MIT",
|
|
7
11
|
"type": "module",
|
|
8
12
|
"exports": {
|
|
9
13
|
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
10
15
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
13
17
|
}
|
|
14
18
|
},
|
|
15
19
|
"main": "dist/index.cjs",
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
"dependencies": {
|
|
22
26
|
"ethers": "^6.13.4",
|
|
23
27
|
"viem": "^2.21.58",
|
|
24
|
-
"@paraspell/sdk-core": "8.0.
|
|
28
|
+
"@paraspell/sdk-core": "8.0.3"
|
|
25
29
|
},
|
|
26
30
|
"peerDependencies": {
|
|
27
31
|
"polkadot-api": ">= 1.8.1 < 2"
|