Skip to content

Commit 71e459b

Browse files
author
Grégory Saive
authored
Merge branch 'master' into task/g112_sign_with_cosignatories
2 parents f71f864 + 3bd75b0 commit 71e459b

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
33

44
The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## [0.12.3] - 20-Jun-2019
7+
8+
- Fixed null mosaic property in MosaicHttp
9+
- Added NodeHttp
10+
- Fixed Uint8 conversions (control char added)
11+
- Fixed ResolutionStatementDTO in exports
12+
613
## [0.12.2] - 17-Jun-2019
714

815
- Removed nem2-library dependency

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ with the NEM2 (a.k.a Catapult)
1212

1313
### _Dragon_ Network Compatibility (catapult-server@0.4.0.1)
1414

15-
Due to a network upgrade with [catapult-server@dragon](https://github.com/nemtech/catapult-server/releases/tag/v0.4.0.1) version, **it is recommended to use this package's 0.12.2 version and upwards to use this package with Dragon versioned networks**.
15+
Due to a network upgrade with [catapult-server@dragon](https://github.com/nemtech/catapult-server/releases/tag/v0.4.0.1) version, **it is recommended to use this package's 0.12.3 version and upwards to use this package with Dragon versioned networks**.
1616

17-
The upgrade to this package's [version v0.12.2](https://github.com/nemtech/nem2-sdk-typescript-javascript/releases/tag/v0.12.2) is mandatory for **dragon compatibility**.
17+
The upgrade to this package's [version v0.12.3](https://github.com/nemtech/nem2-sdk-typescript-javascript/releases/tag/v0.12.3) is mandatory for **dragon compatibility**.
1818

1919
### _Cow_ Network Compatibility (catapult-server@0.3.0.2)
2020

package-lock.json

Lines changed: 3 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nem2-sdk",
3-
"version": "0.12.2",
3+
"version": "0.12.3",
44
"description": "Reactive Nem2 sdk for typescript and javascript",
55
"scripts": {
66
"pretest": "npm run build",
@@ -45,10 +45,8 @@
4545
"coveralls": "^3.0.0",
4646
"gulp": "^4.0.2",
4747
"gulp-typescript": "^5.0.1",
48-
"js-sha256": "^0.9.0",
4948
"mocha": "^4.0.1",
5049
"nyc": "^11.3.0",
51-
"ripemd160": "^2.0.2",
5250
"secure-random": "^1.1.1",
5351
"ts-mockito": "^2.2.7",
5452
"ts-node": "^5.0.1",
@@ -61,7 +59,9 @@
6159
"crypto-js": "^3.1.9-1",
6260
"flatbuffers": "^1.11.0",
6361
"js-joda": "^1.6.2",
62+
"js-sha256": "^0.9.0",
6463
"js-sha3": "^0.8.0",
64+
"ripemd160": "^2.0.2",
6565
"request": "^2.83.0",
6666
"request-promise-native": "^1.0.5",
6767
"rxjs": "^6.2.1",

src/infrastructure/MosaicHttp.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export class MosaicHttp extends Http implements MosaicRepository {
8282
PublicAccount.createFromPublicKey(mosaicInfoDTO.mosaic.owner, networkType),
8383
mosaicInfoDTO.mosaic.revision,
8484
new MosaicProperties(
85-
new UInt64(mosaicFlag),
86-
(new UInt64(divisibility)).compact(),
85+
mosaicFlag ? new UInt64(mosaicFlag) : UInt64.fromUint(0),
86+
(divisibility ? new UInt64(divisibility) : UInt64.fromUint(0)).compact(),
8787
duration ? new UInt64(duration) : undefined,
8888
),
8989
);
@@ -113,7 +113,7 @@ export class MosaicHttp extends Http implements MosaicRepository {
113113
divisibility = mosaicInfoDTO.mosaic.properties[MosaicPropertyType.Divisibility].value;
114114
}
115115
if (mosaicInfoDTO.mosaic.properties[MosaicPropertyType.Duration].value) {
116-
duration = mosaicInfoDTO.mosaic.properties[MosaicPropertyType.Divisibility].value;
116+
duration = mosaicInfoDTO.mosaic.properties[MosaicPropertyType.Duration].value;
117117
}
118118
return new MosaicInfo(
119119
mosaicInfoDTO.meta.id,
@@ -123,8 +123,8 @@ export class MosaicHttp extends Http implements MosaicRepository {
123123
PublicAccount.createFromPublicKey(mosaicInfoDTO.mosaic.owner, networkType),
124124
mosaicInfoDTO.mosaic.revision,
125125
new MosaicProperties(
126-
new UInt64(mosaicFlag),
127-
(new UInt64(divisibility)).compact(),
126+
mosaicFlag ? new UInt64(mosaicFlag) : UInt64.fromUint(0),
127+
(divisibility ? new UInt64(divisibility) : UInt64.fromUint(0)).compact(),
128128
duration ? new UInt64(duration) : undefined,
129129
),
130130
);

src/infrastructure/model/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ let primitives = [
161161
let enumsMap: {[index: string]: any} = {
162162
"AccountPropertyTypeEnum": AccountPropertyTypeEnum,
163163
"AliasTypeEnum": AliasTypeEnum,
164-
"ResolutionStatementDTO": ResolutionStatementDTO,
165164
"MosaicPropertyIdEnum": MosaicPropertyIdEnum,
166165
"MultisigModificationTypeEnum": MultisigModificationTypeEnum,
167166
"NamespaceTypeEnum": NamespaceTypeEnum,
@@ -209,6 +208,7 @@ let typeMap: {[index: string]: any} = {
209208
"NodeInfoDTO": NodeInfoDTO,
210209
"NodeTimeDTO": NodeTimeDTO,
211210
"ResolutionEntryDTO": ResolutionEntryDTO,
211+
"ResolutionStatementDTO": ResolutionStatementDTO,
212212
"ServerDTO": ServerDTO,
213213
"ServerInfoDTO": ServerInfoDTO,
214214
"SourceDTO": SourceDTO,

src/service/MosaicView.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ export class MosaicView {
2424
/**
2525
* @internal
2626
* @param mosaicInfo
27-
* @param namespaceName
28-
* @param mosaicName
2927
*/
3028
constructor(/**
3129
* The mosaic information

0 commit comments

Comments
 (0)