diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 81a25fc41..738ca7951 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -914,7 +914,8 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) { script: { offset: output.get('script').offset, limit: output.get('script').limit, - buffer: new Buffer(output.get('script').buffer).toString('hex') + buffer: new Buffer(new Uint8Array( + output.get('script').buffer)).toString('hex') } }; }),