@layerzerolabs/lz-solana-sdk-v2 2.3.22 → 2.3.23
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/CHANGELOG.md +12 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { arrayify, hexlify, hexZeroPad } from '@ethersproject/bytes';
|
|
|
10
10
|
import { keccak256 } from '@ethersproject/keccak256';
|
|
11
11
|
import invariant3 from 'tiny-invariant';
|
|
12
12
|
import { getAddress } from '@ethersproject/address';
|
|
13
|
+
import base58 from 'bs58';
|
|
13
14
|
import '@ethersproject/abi';
|
|
14
15
|
import { BigNumber } from '@ethersproject/bignumber';
|
|
15
16
|
import '@ethersproject/solidity';
|
|
@@ -17,7 +18,6 @@ import { signWithECDSA } from '@layerzerolabs/lz-corekit-solana';
|
|
|
17
18
|
import { Environment, EndpointId } from '@layerzerolabs/lz-definitions';
|
|
18
19
|
import crypto from 'crypto';
|
|
19
20
|
import { sha256 } from '@ethersproject/sha2';
|
|
20
|
-
import base58 from 'bs58';
|
|
21
21
|
|
|
22
22
|
var __defProp = Object.defineProperty;
|
|
23
23
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -2806,7 +2806,7 @@ function trim0x(str) {
|
|
|
2806
2806
|
}
|
|
2807
2807
|
function addressToBytes32(address) {
|
|
2808
2808
|
if (isSolanaAddress(address)) {
|
|
2809
|
-
return
|
|
2809
|
+
return base58.decode(address);
|
|
2810
2810
|
} else if (address.startsWith("0x") && address.length <= 66) {
|
|
2811
2811
|
return arrayify(hexZeroPadTo32(address));
|
|
2812
2812
|
}
|