Skip to content

Commit

Permalink
Merge pull request #38 from Adamant-im/fix-return-asset
Browse files Browse the repository at this point in the history
Add returnAsset parameter range
  • Loading branch information
zyuhel authored Jun 10, 2019
2 parents 5498259 + 18b3a8c commit b07aaf9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ __private.list = function (filter, cb) {
limit: null,
offset: null,
orderBy: null,
returnAsset: null,
// FIXME: Backward compatibility, should be removed after transitional period
ownerAddress: null,
ownerPublicKey: null
Expand Down
10 changes: 10 additions & 0 deletions schema/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ module.exports = {
offset: {
type: 'integer',
minimum: 0
},
returnAsset: {
type: 'integer',
minimum: 0,
maximum: 1
}
}
},
Expand All @@ -177,6 +182,11 @@ module.exports = {
format: 'id',
minLength: 1,
maxLength: 20
},
returnAsset: {
type: 'integer',
minimum: 0,
maximum: 1
}
},
required: ['id']
Expand Down

0 comments on commit b07aaf9

Please sign in to comment.