Skip to content

Commit

Permalink
chore(get-router-state): stringify final json for output processings
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 committed Apr 2, 2024
1 parent 76ea65d commit 02cd442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get-router-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,12 @@ const getRouterState = _routerAddress =>
.then(getSafeVaultContractOwnerAndAddToState)
.then(getSafeVaultContractStateAndAddToState)
.then(prepareOutputAndPutInState)
.then(_state => console.dir(_state[OUTPUT_STATE_KEY], { depth: null }))
.then(_state => console.log(JSON.stringify(_state[OUTPUT_STATE_KEY])))
.catch(console.warn)

const getSupportedTokens = _routerAddress =>
getSupportedTokensList(_routerAddress)
.then(_state => console.dir(_state[TOKEN_INFOS_STATE_KEY], { depth: null }))
.then(_state => console.dir(JSON.stringify(_state[TOKEN_INFOS_STATE_KEY], { depth: null })))
.catch(console.warn)

module.exports = {
Expand Down

0 comments on commit 02cd442

Please sign in to comment.