Fix default assignment of validate key for payments

Fixes problems with p2ms experienced in issue below.

Related: 
This commit is contained in:
junderw 2018-08-28 14:21:18 +09:00
parent 20551fd380
commit 24d541d0ed
No known key found for this signature in database
GPG key ID: B256185D3A971908
7 changed files with 7 additions and 7 deletions
src/payments

View file

@ -19,7 +19,7 @@ function p2data (a, opts) {
!a.data &&
!a.output
) throw new TypeError('Not enough data')
opts = opts || { validate: true }
opts = Object.assign({ validate: true }, opts || {})
typef({
network: typef.maybe(typef.Object),