Skip to content

Commit

Permalink
Merge pull request #1332 from decent-dao/fix/remove-wagmi-public-prov…
Browse files Browse the repository at this point in the history
…ider

Remove Wagmi public provider
  • Loading branch information
mudrila authored Jan 24, 2024
2 parents 6fcd73f + e8dde06 commit 4b0d401
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
14 changes: 5 additions & 9 deletions src/components/Proposals/ProposalActions/ProposalAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,13 @@ export function ProposalAction({
if (!showActionButton) {
if (!expandedView) {
return (
<Link
<Button
as={Link}
href={DAO_ROUTES.proposal.relative(daoAddress, proposal.proposalId)}
passHref
variant="secondary"
>
<Button
as="a"
variant="secondary"
>
{t('details')}
</Button>
</Link>
{t('details')}
</Button>
);
}
// This means that Proposal in state where there's no action to perform
Expand Down
8 changes: 1 addition & 7 deletions src/components/ui/menus/AccountDisplay/MenuItemNetwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ export function MenuItemNetwork() {
key={chain.chainId}
value={chain.chainId}
>
<Box
w="1rem"
h="1rem"
bg={chain.color}
rounded="full"
/>
<Text textStyle="text-base-mono-medium">{chain.name}</Text>
{chain.name}
</option>
))}
</Select>
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/DAO/loaders/governance/useERC20Claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function useERC20Claim() {
const tokenClaimArray = await possibleTokenClaimContract
.queryFilter(tokenClaimFilter)
.catch(() => []);
if (!tokenClaimArray.length && tokenClaimArray[0].args[1] === tokenContract.asSigner.address) {

if (!tokenClaimArray.length || tokenClaimArray[0].args[1] === tokenContract.asSigner.address) {
return;
}
// action to governance
Expand Down
2 changes: 0 additions & 2 deletions src/providers/NetworkConfig/rainbow-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
import { Chain, configureChains, createClient, createStorage, mainnet } from 'wagmi';
import { hardhat } from 'wagmi/chains';
import { jsonRpcProvider } from 'wagmi/providers/jsonRpc';
import { publicProvider } from 'wagmi/providers/public';
import { APP_NAME } from '../../constants/common';
import { supportedChains } from './NetworkConfigProvider';
import { testWallet } from './testWallet';
Expand All @@ -31,7 +30,6 @@ export const { chains, provider } = configureChains(supportedWagmiChains, [
return { http: `https://${networkUrl}`, webSocket: `wss://${networkUrl}` };
},
}),
publicProvider(),
]);

const defaultWallets = [
Expand Down

0 comments on commit 4b0d401

Please sign in to comment.