Skip to content

Commit f146c8e

Browse files
committed
Add 0x0 address on /tokenAddress command
1 parent dbeea02 commit f146c8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/commands/tokenAddress.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ module.exports = () => {
2626
const network = args[1] ? args[1].toLowerCase() : 'mainnet';
2727
const currencies = (await kyber(network).get('/currencies')).data.data;
2828
const token = args[0].toUpperCase();
29+
30+
if (token === 'ZERO') {
31+
replyWithMarkdown('0x0000000000000000000000000000000000000000', inReplyTo(message.message_id));
32+
return;
33+
}
34+
2935
const result = currencies.find((o) => o.symbol === token);
3036

3137
if (!result) {

0 commit comments

Comments
 (0)