fix(electrumx broadcast): Added body variable. Curl example works now

This commit is contained in:
Chris Troutner
2020-10-02 13:33:35 -07:00
parent 5f63e53a6d
commit 6b2588c487
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -957,7 +957,7 @@ describe('#ElectrumX Router', () => {
})
it('should throw an error object for invalid formatted transaction', async () => {
req.body = mockData.txDetails.hex.substring(10)
req.body.txHex = mockData.txDetails.hex.substring(10)
stubMethodForUnitTests(
electrumxRoute,
@@ -974,7 +974,7 @@ describe('#ElectrumX Router', () => {
// We cannot send an actual broadcast transaction to mainnet
if (process.env.TEST !== 'unit') return this.skip()
req.body = mockData.txDetails.hex
req.body.txHex = mockData.txDetails.hex
stubMethodForUnitTests(
electrumxRoute,