mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 11:45:49 +00:00
testing - add memo field into payment transaction so parsePaymentMemos from parsePayment is tested
This commit is contained in:
@@ -134,7 +134,15 @@ module.exports = function(port) {
|
||||
|
||||
mock.on('request_account_tx', function(request, conn) {
|
||||
if (request.account === addresses.ACCOUNT) {
|
||||
conn.send(fixtures.misc.accountTransactionsResponse(request));
|
||||
const options = {
|
||||
memos: [{
|
||||
Memo: {
|
||||
MemoFormat: '7274312E352E32',
|
||||
MemoType: '636C69656E74'
|
||||
}
|
||||
}]
|
||||
};
|
||||
conn.send(fixtures.misc.accountTransactionsResponse(request, options));
|
||||
} else {
|
||||
assert(false, 'Unrecognized account address: ' + request.account);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user