mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 09:46:58 +01:00
Numberify outputs.amount
This commit is contained in:
parent
4e8087ee0e
commit
476d53b00a
@ -8,9 +8,9 @@
|
|||||||
*/
|
*/
|
||||||
export default function makeOutput(condition, amount = 1) {
|
export default function makeOutput(condition, amount = 1) {
|
||||||
return {
|
return {
|
||||||
amount: JSON.stringify(amount),
|
amount: amount,
|
||||||
condition,
|
condition,
|
||||||
'public_keys': condition.details.hasOwnProperty('public_key') ?
|
'public_keys': condition.details.hasOwnProperty('public_key') ?
|
||||||
[condition.details.public_key] : [],
|
[condition.details.public_key] : [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user