We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900f289 commit 4a9fdd2Copy full SHA for 4a9fdd2
1 file changed
lib/currency.js
@@ -2,6 +2,7 @@
2
3
const numberValidator = require('./validators/number')
4
const stringValidator = require('./validators/string')
5
+const arrayValidator = require('./validators/array')
6
const currencyValidator = require('./validators/currency')
7
const Model = require('./model')
8
@@ -10,7 +11,8 @@ const fields = {
10
11
name: 1,
12
pool: 2,
13
explorer: 3,
- symbol: 4
14
+ symbol: 4,
15
+ walletFx: 5
16
}
17
18
/**
@@ -52,8 +54,9 @@ class Currency extends Model {
52
54
id: numberValidator,
53
55
name: stringValidator,
56
pool: stringValidator,
- explorer: stringValidator,
- currency: currencyValidator
57
+ explorer: arrayValidator,
58
+ currency: currencyValidator,
59
+ walletFx: arrayValidator
60
61
})
62
0 commit comments