diff --git a/test/mocks/FakePayProServer.js b/test/mocks/FakePayProServer.js index 24d3a4ca6..6f0f76138 100644 --- a/test/mocks/FakePayProServer.js +++ b/test/mocks/FakePayProServer.js @@ -256,6 +256,7 @@ function startServer(cb) { res.headers['Content-Transfer-Encoding'] = 'binary'; transactions = transactions.map(function(tx) { + tx.buffer = new Buffer(new Uint8Array(tx.buffer)); tx.buffer = tx.buffer.slice(tx.offset, tx.limit); var ptx = new bitcore.Transaction(); ptx.parse(tx.buffer);