Skip to content

Commit 2432e73

Browse files
committed
Fixed a few merge issues
1 parent 5a03c05 commit 2432e73

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

test/core/utils/TransactionMapping.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ describe('TransactionMapping - createFromPayload', () => {
219219

220220
const transaction = TransactionMapping.createFromPayload(signedTransaction.payload) as MosaicDefinitionTransaction;
221221

222-
expect(transaction.mosaicProperties.duration! .higher).to.be.equal(0);
223222
expect(transaction.mosaicProperties.divisibility).to.be.equal(3);
224223
expect(transaction.mosaicProperties.supplyMutable).to.be.equal(false);
225224
expect(transaction.mosaicProperties.transferable).to.be.equal(false);

test/infrastructure/SerializeTransactionToJSON.spec.ts

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -213,35 +213,8 @@ describe('SerializeTransactionToJSON', () => {
213213

214214
const json = mosaicDefinitionTransaction.toJSON();
215215

216-
expect(json.type).to.be.equal(TransactionType.MOSAIC_DEFINITION);
217-
expect(json.mosaicProperties.supplyMutable).to.be.equal(false);
218-
expect(json.mosaicProperties.transferable).to.be.equal(false);
219-
expect(json.mosaicProperties.levyMutable).to.be.equal(false);
220-
expect(json.mosaicProperties.divisibility).to.be.equal(3);
221-
222-
});
223-
224-
it('should create MosaicDefinitionTransaction without duration', () => {
225-
const mosaicDefinitionTransaction = MosaicDefinitionTransaction.create(
226-
Deadline.create(),
227-
new MosaicNonce(new Uint8Array([0xE6, 0xDE, 0x84, 0xB8])), // nonce
228-
new MosaicId(UInt64.fromUint(1).toDTO()), // ID
229-
MosaicProperties.create({
230-
supplyMutable: false,
231-
transferable: false,
232-
levyMutable: false,
233-
divisibility: 3,
234-
}),
235-
NetworkType.MIJIN_TEST,
236-
);
237-
238-
const json = mosaicDefinitionTransaction.toJSON();
239-
240-
expect(json.type).to.be.equal(TransactionType.MOSAIC_DEFINITION);
241-
expect(json.mosaicProperties.supplyMutable).to.be.equal(false);
242-
expect(json.mosaicProperties.transferable).to.be.equal(false);
243-
expect(json.mosaicProperties.levyMutable).to.be.equal(false);
244-
expect(json.mosaicProperties.divisibility).to.be.equal(3);
216+
expect(json.transaction.type).to.be.equal(TransactionType.MOSAIC_DEFINITION);
217+
expect(json.transaction.properties.length).to.be.equal(2);
245218

246219
});
247220

0 commit comments

Comments
 (0)