Skip to content

Commit

Permalink
Change symbol length test to be less than 9
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro committed Apr 23, 2020
1 parent 857b1f9 commit 7e8fb7c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions contract-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
"symbol": "INV",
"decimals": 18
},
"0x9d11937E2179dC5270Aa86A3f8143232D6DA0E69": {
"name": "Token Bridge",
"logo": "rsk.png",
"erc20": false,
"symbol": "TB",
"decimals": 0
},
"0x6B1a73d547F4009A26B8485b63D7015D248AD406": {
"name": "Dai Stablecoin",
"logo": "dai.png",
Expand Down
Binary file removed images/rsk.png
Binary file not shown.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ test('logos path names should not contain space', function (t) {
t.end()
})

test('symbols should be five or less characters', function (t) {
test('symbols should be nine or less characters', function (t) {
Object.keys(contractMap).forEach(address => {
const contract = contractMap[address]
const symbol = contract.symbol
if (symbol) {
t.notOk(symbol.length > 5, `symbol with more than 5 characters: "${symbol}"`)
t.notOk(symbol.length > 9, `symbol with more than 9 characters: "${symbol}"`)
}
})
t.end()
Expand Down

0 comments on commit 7e8fb7c

Please sign in to comment.