Skip to content

Commit c545796

Browse files
authored
Merge branch 'master' into task/g294_mosaic_ordering
2 parents bc47507 + dbb5c58 commit c545796

31 files changed

+1237
-107
lines changed

e2e/infrastructure/TransactionHttp.spec.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,40 @@ describe('TransactionHttp', () => {
10591059
transactionHttp.announce(signedTransaction);
10601060
});
10611061
});
1062+
1063+
describe('Transfer Transaction using address alias', () => {
1064+
let listener: Listener;
1065+
before (() => {
1066+
listener = new Listener(config.apiUrl);
1067+
return listener.open();
1068+
});
1069+
after(() => {
1070+
return listener.close();
1071+
});
1072+
1073+
it('Announce TransferTransaction', (done) => {
1074+
const transferTransaction = TransferTransaction.create(
1075+
Deadline.create(),
1076+
namespaceId,
1077+
[NetworkCurrencyMosaic.createAbsolute(1)],
1078+
PlainMessage.create('test-message'),
1079+
NetworkType.MIJIN_TEST,
1080+
);
1081+
const signedTransaction = transferTransaction.signWith(account, generationHash);
1082+
1083+
listener.confirmed(account.address).subscribe((transaction: TransferTransaction) => {
1084+
expect(transaction.recipientAddress, 'AecipientAddress').not.to.be.undefined;
1085+
done();
1086+
});
1087+
listener.status(account.address).subscribe((error) => {
1088+
console.log('Error:', error);
1089+
assert(false);
1090+
done();
1091+
});
1092+
transactionHttp.announce(signedTransaction);
1093+
});
1094+
});
1095+
10621096
describe('AddressAliasTransaction', () => {
10631097
let listener: Listener;
10641098
before (() => {

0 commit comments

Comments
 (0)