Fix default assignment of validate key for payments
Fixes problems with p2ms experienced in issue below. Related: #1194
This commit is contained in:
parent
20551fd380
commit
24d541d0ed
7 changed files with 7 additions and 7 deletions
src/payments
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue