@paraspell/sdk 8.12.0 → 8.12.1
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 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var sdkCore = require('@paraspell/sdk-core');
|
|
4
4
|
var blake2b = require('@noble/hashes/blake2b');
|
|
5
5
|
var utils = require('@noble/hashes/utils');
|
|
6
|
+
var ethers = require('ethers');
|
|
6
7
|
var polkadotApi = require('polkadot-api');
|
|
7
8
|
var polkadotSdkCompat = require('polkadot-api/polkadot-sdk-compat');
|
|
8
9
|
|
|
@@ -1128,7 +1129,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1128
1129
|
case 0:
|
|
1129
1130
|
toSS58 = polkadotApi.AccountId().dec;
|
|
1130
1131
|
_context13.next = 3;
|
|
1131
|
-
return this.api._request("".concat(module, "_").concat(method), [module === 'system' && isHex(key) ? toSS58(key) : key]);
|
|
1132
|
+
return this.api._request("".concat(module, "_").concat(method), [module === 'system' && isHex(key) && !ethers.ethers.isAddress(key) ? toSS58(key) : key]);
|
|
1132
1133
|
case 3:
|
|
1133
1134
|
value = _context13.sent;
|
|
1134
1135
|
return _context13.abrupt("return", isHex(value) ? value : '0x' + value.toString(16).padStart(8, '0'));
|
package/dist/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { BatchMode, createApiInstanceForNode as createApiInstanceForNode$1, Node
|
|
|
2
2
|
export * from '@paraspell/sdk-core';
|
|
3
3
|
import { blake2b } from '@noble/hashes/blake2b';
|
|
4
4
|
import { bytesToHex } from '@noble/hashes/utils';
|
|
5
|
+
import { ethers } from 'ethers';
|
|
5
6
|
import { FixedSizeBinary, Binary, createClient, AccountId } from 'polkadot-api';
|
|
6
7
|
import { withPolkadotSdkCompat } from 'polkadot-api/polkadot-sdk-compat';
|
|
7
8
|
|
|
@@ -1127,7 +1128,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1127
1128
|
case 0:
|
|
1128
1129
|
toSS58 = AccountId().dec;
|
|
1129
1130
|
_context13.next = 3;
|
|
1130
|
-
return this.api._request("".concat(module, "_").concat(method), [module === 'system' && isHex(key) ? toSS58(key) : key]);
|
|
1131
|
+
return this.api._request("".concat(module, "_").concat(method), [module === 'system' && isHex(key) && !ethers.isAddress(key) ? toSS58(key) : key]);
|
|
1131
1132
|
case 3:
|
|
1132
1133
|
value = _context13.sent;
|
|
1133
1134
|
return _context13.abrupt("return", isHex(value) ? value : '0x' + value.toString(16).padStart(8, '0'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.1",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"ethers": "^6.13.7",
|
|
27
27
|
"viem": "^2.28.1",
|
|
28
28
|
"@noble/hashes": "^1.8.0",
|
|
29
|
-
"@paraspell/sdk-core": "8.12.
|
|
29
|
+
"@paraspell/sdk-core": "8.12.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"polkadot-api": ">= 1.10.0 < 2"
|