File tree Expand file tree Collapse file tree 3 files changed +27
-1500
lines changed
Expand file tree Collapse file tree 3 files changed +27
-1500
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const polygon = require("./tokens/polygon.json");
88const mumbai = require ( "./tokens/mumbai.json" ) ;
99const bridgeUtils = require ( '@uniswap/token-list-bridge-utils' ) ;
1010
11- module . exports = async function buildList ( ) {
11+ module . exports = function buildList ( ) {
1212 const parsed = version . split ( "." ) ;
1313 const l1List = {
1414 name : "Uniswap Labs Default List" ,
@@ -30,5 +30,5 @@ module.exports = async function buildList() {
3030 return t1 . chainId < t2 . chainId ? - 1 : 1 ;
3131 } ) ,
3232 } ;
33- return await bridgeUtils . chainify ( l1List )
33+ return bridgeUtils . chainify ( l1List ) ;
3434} ;
Original file line number Diff line number Diff line change 11const buildList = require ( './buildList' ) ;
22
3- ( async ( ) => {
4- console . log ( JSON . stringify ( await buildList ( ) , null , 2 ) ) ;
5- } ) ( ) ;
3+ buildList ( ) . then ( data => console . log ( JSON . stringify ( data , null , 2 ) ) ) ;
You can’t perform that action at this time.
0 commit comments