Skip to content

Commit

Permalink
Update/config (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuash committed Oct 11, 2021
1 parent eee45e2 commit 8dcfcf6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Unreleased
# base-v1.5.0 - 2021-10-11

## Changes

- Displayed desmos profile native address in connections ([\#420](https://github.com/forbole/big-dipper-2.0-cosmos/issues/420))
- Create `compact` and `detailed` transaction list views for users with different needs ([\#391](https://github.com/forbole/big-dipper-2.0-cosmos/issues/391))
- Updated `chain_config`

# base-v1.4.0 - 2021-10-04

Expand Down
3 changes: 1 addition & 2 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ jest.mock('@configs', () => ({
}
},
"extra": {
"desmosProfile": true,
"forboleX": false
"profile": true
}
},
generalConfig: {
Expand Down
3 changes: 1 addition & 2 deletions src/configs/chain_config.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
}
},
"extra": {
"desmosProfile": true,
"forboleX": false
"profile": true
}
}
3 changes: 1 addition & 2 deletions src/configs/chain_config.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
}
},
"extra": {
"desmosProfile": true,
"forboleX": false
"profile": true
}
}
2 changes: 1 addition & 1 deletion src/contexts/chain/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const useValidatorsAddress = (initialstate:ChainState) => {
} = {};

let profiles = [];
if (chainConfig.extra.desmosProfile) {
if (chainConfig.extra.profile) {
data?.validator?.filter((x) => x.validatorInfo).forEach((x) => {
profiles.push(fetchDesmosProfile(x.validatorInfo.selfDelegateAddress));
});
Expand Down
2 changes: 1 addition & 1 deletion src/screens/account_details/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const useAccountDetails = () => {

useEffect(() => {
handleSetState(initialState);
if (chainConfig.extra.desmosProfile) {
if (chainConfig.extra.profile) {
fetchDesmosProfile(R.pathOr('', ['query', 'address'], router));
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/screens/validator_details/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const useValidatorDetails = () => {

useEffect(() => {
handleSetState(initialState);
if (chainConfig.extra.desmosProfile) {
if (chainConfig.extra.profile) {
const address = validatorToDelegatorAddress(R.pathOr('', ['query', 'address'], router));

fetchDesmosProfile(address);
Expand Down

0 comments on commit 8dcfcf6

Please sign in to comment.