mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
17 lines
399 B
JavaScript
17 lines
399 B
JavaScript
/* @flow */
|
|
'use strict' // eslint-disable-line strict
|
|
const assert = require('assert')
|
|
const utils = require('./utils')
|
|
|
|
function parseEscrowCancellation(tx: Object): Object {
|
|
assert(tx.TransactionType === 'EscrowCancel')
|
|
|
|
return utils.removeUndefined({
|
|
memos: utils.parseMemos(tx),
|
|
owner: tx.Owner,
|
|
escrowSequence: tx.OfferSequence
|
|
})
|
|
}
|
|
|
|
module.exports = parseEscrowCancellation
|