mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 15:45:48 +00:00
Rewrite transaction parser and add unit test for getTransaction
This commit is contained in:
11
src/api/ledger/parse/cancellation.js
Normal file
11
src/api/ledger/parse/cancellation.js
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
const assert = require('assert');
|
||||
|
||||
function parseOrderCancellation(tx) {
|
||||
assert(tx.TransactionType === 'OfferCancel');
|
||||
return {
|
||||
orderSequence: tx.OfferSequence
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = parseOrderCancellation;
|
||||
Reference in New Issue
Block a user