Skip to content

Commit 4a9fdd2

Browse files
ezewerJacobPlaster
authored andcommitted
Add walletFx and fix explorer
Add walletFX key to currencie object and fix explorer as it is an array instead than a string
1 parent 900f289 commit 4a9fdd2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

lib/currency.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const numberValidator = require('./validators/number')
44
const stringValidator = require('./validators/string')
5+
const arrayValidator = require('./validators/array')
56
const currencyValidator = require('./validators/currency')
67
const Model = require('./model')
78

@@ -10,7 +11,8 @@ const fields = {
1011
name: 1,
1112
pool: 2,
1213
explorer: 3,
13-
symbol: 4
14+
symbol: 4,
15+
walletFx: 5
1416
}
1517

1618
/**
@@ -52,8 +54,9 @@ class Currency extends Model {
5254
id: numberValidator,
5355
name: stringValidator,
5456
pool: stringValidator,
55-
explorer: stringValidator,
56-
currency: currencyValidator
57+
explorer: arrayValidator,
58+
currency: currencyValidator,
59+
walletFx: arrayValidator
5760
}
5861
})
5962
}

0 commit comments

Comments
 (0)