Skip to content

Commit 73bb755

Browse files
authored
Fixed #606 (#607)
1 parent d7b5aee commit 73bb755

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
},
8282
"dependencies": {
8383
"bluebird": "^3.7.2",
84-
"catbuffer-typescript": "0.0.20",
84+
"catbuffer-typescript": "0.0.21-alpha-202006221403",
8585
"crypto-js": "^4.0.0",
8686
"diff": "^4.0.2",
8787
"futoin-hkdf": "^1.3.1",

src/model/transaction/SecretLockTransaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ export class SecretLockTransaction extends Transaction {
216216
TransactionType.SECRET_LOCK.valueOf(),
217217
new AmountDto(this.maxFee.toDTO()),
218218
new TimestampDto(this.deadline.toDTO()),
219+
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
219220
new Hash256Dto(this.getSecretByte()),
220221
new UnresolvedMosaicBuilder(new UnresolvedMosaicIdDto(this.mosaic.id.id.toDTO()), new AmountDto(this.mosaic.amount.toDTO())),
221222
new BlockDurationDto(this.duration.toDTO()),
222223
this.hashAlgorithm.valueOf(),
223-
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
224224
);
225225
return transactionBuilder.serialize();
226226
}
@@ -235,11 +235,11 @@ export class SecretLockTransaction extends Transaction {
235235
this.versionToDTO(),
236236
this.networkType.valueOf(),
237237
TransactionType.SECRET_LOCK.valueOf(),
238+
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
238239
new Hash256Dto(this.getSecretByte()),
239240
new UnresolvedMosaicBuilder(new UnresolvedMosaicIdDto(this.mosaic.id.id.toDTO()), new AmountDto(this.mosaic.amount.toDTO())),
240241
new BlockDurationDto(this.duration.toDTO()),
241242
this.hashAlgorithm.valueOf(),
242-
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
243243
);
244244
}
245245

src/model/transaction/SecretProofTransaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ export class SecretProofTransaction extends Transaction {
197197
TransactionType.SECRET_PROOF.valueOf(),
198198
new AmountDto(this.maxFee.toDTO()),
199199
new TimestampDto(this.deadline.toDTO()),
200+
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
200201
new Hash256Dto(this.getSecretByte()),
201202
this.hashAlgorithm.valueOf(),
202-
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
203203
this.getProofByte(),
204204
);
205205
return transactionBuilder.serialize();
@@ -215,9 +215,9 @@ export class SecretProofTransaction extends Transaction {
215215
this.versionToDTO(),
216216
this.networkType.valueOf(),
217217
TransactionType.SECRET_PROOF.valueOf(),
218+
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
218219
new Hash256Dto(this.getSecretByte()),
219220
this.hashAlgorithm.valueOf(),
220-
new UnresolvedAddressDto(this.recipientAddress.encodeUnresolvedAddress(this.networkType)),
221221
this.getProofByte(),
222222
);
223223
}

test/model/transaction/SecretLockTransaction.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ describe('SecretLockTransaction', () => {
132132
);
133133
const signedTx = secretLockTransaction.signWith(account, generationHash);
134134
expect(signedTx.payload.substring(256, signedTx.payload.length)).to.be.equal(
135-
'9B3155B37159DA50AA52D5967C509B410F5A36A3B1E31ECB5AC76675D79B4A5E44B262C46CEABB850' +
136-
'A000000000000006400000000000000009026D27E1D0A26CA4E316F901E23E55C8711DB20DF11A7B2',
135+
'9026D27E1D0A26CA4E316F901E23E55C8711DB20DF11A7B29B3155B37159DA50AA52D5967C509B410' +
136+
'F5A36A3B1E31ECB5AC76675D79B4A5E44B262C46CEABB850A00000000000000640000000000000000',
137137
);
138138
});
139139

test/model/transaction/SecretProofTransaction.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ describe('SecretProofTransaction', () => {
202202

203203
const signedTx = secretProofTransaction.signWith(account, generationHash);
204204
expect(signedTx.payload.substring(256, signedTx.payload.length)).to.be.equal(
205-
'9B3155B37159DA50AA52D5967C509B410F5A36A3B1E31ECB5AC76675D79B4A5E20000090D66C33420E5411995BACFCA2' +
206-
'B28CF1C9F5DD7AB1204EA4B778A39A3663719DFC5E48C9D78431B1E45C2AF9DF538782BF199C189DABEAC7',
205+
'90D66C33420E5411995BACFCA2B28CF1C9F5DD7AB1204EA49B3155B37159DA50AA52D5967C509B410F5A36A3B1E31ECB5AC7667' +
206+
'5D79B4A5E200000B778A39A3663719DFC5E48C9D78431B1E45C2AF9DF538782BF199C189DABEAC7',
207207
);
208208
});
209209

0 commit comments

Comments
 (0)