mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 05:05:48 +00:00
add remit
This commit is contained in:
@@ -111,6 +111,11 @@ const UNLReport = {
|
||||
meta: require('./fixtures/unl-report-meta-binary.json'),
|
||||
}
|
||||
|
||||
const Remit = {
|
||||
tx: require('./fixtures/remit-tx.json'),
|
||||
binary: require('./fixtures/remit-binary.json'),
|
||||
}
|
||||
|
||||
function bytesListTest() {
|
||||
const list = new BytesList()
|
||||
.put(Buffer.from([0]))
|
||||
@@ -291,6 +296,12 @@ function nfTokenTest() {
|
||||
}
|
||||
}
|
||||
|
||||
function RemitTest() {
|
||||
test('can serialize Remit', () => {
|
||||
expect(encode(Remit.tx)).toEqual(Remit.binary)
|
||||
})
|
||||
}
|
||||
|
||||
describe('Binary Serialization', function () {
|
||||
describe('nestedObjectTests', nestedObjectTests)
|
||||
describe('BytesList', bytesListTest)
|
||||
@@ -304,4 +315,5 @@ describe('Binary Serialization', function () {
|
||||
describe('TicketTest', ticketTest)
|
||||
describe('NFToken', nfTokenTest)
|
||||
describe('UNLReport', UNLReportTest)
|
||||
describe('Remit', RemitTest)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user