dash-platform-sdk 1.4.0-dev.5 → 1.4.0-dev.6

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.
@@ -10,4 +10,13 @@ describe('PlatformAddress', () => {
10
10
  expect(info.nonce).toBeDefined();
11
11
  expect(info.address).toBeDefined();
12
12
  });
13
+ test('getAddressesInfos', async () => {
14
+ const addresses = [
15
+ 'tdashevo1qpgz9hk6tkn5zj3653s8qkjmk9439qkf0gl4yxxw',
16
+ 'tdashevo1qq79z66rh34l4u2axlz3jv34zwshggnenut9k093',
17
+ 'tdashevo1qpwyg4khd0rh8px5cjphv9wx38psl6hma5krg9gk'
18
+ ];
19
+ const info = await sdk.platformAddresses.getAddressesInfos(addresses);
20
+ expect(info).toHaveLength(addresses.length);
21
+ });
13
22
  });
@@ -7,4 +7,8 @@ describe('DashPlatformSDK', () => {
7
7
  test('should be constructable throw `new`', () => {
8
8
  expect(sdk).toEqual(expect.any(DashPlatformSDK));
9
9
  });
10
+ test('should be able to deserialize consensus error', () => {
11
+ const err = sdk.utils.deserializeConsensusError('AwIiSW52YWxpZCBTdGF0ZSBUcmFuc2l0aW9uIHNpZ25hdHVyZQ');
12
+ expect(err).toEqual('Invalid State Transition signature');
13
+ });
10
14
  });