Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rbennettcw authored and ilijabojanovic committed Dec 12, 2024
1 parent b480899 commit 841ae4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/model/src/services/stakeHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function getVotingWeight(
return commonProtocol.calculateVoteWeight(stakeBalance, stake.vote_weight);
} else if (topic.weighted_voting === TopicWeightedVoting.ERC20) {
// if topic chain node is missing, fallback on community chain node
const chainNode = topic.ChainNode || community.ChainNode || ({} as any);
const chainNode = topic.ChainNode || community.ChainNode!;
const { eth_chain_id, private_url, url } = chainNode;
mustExist('Chain Node Eth Chain Id', eth_chain_id);
const chainNodeUrl = private_url! || url!;
Expand Down

0 comments on commit 841ae4c

Please sign in to comment.