Skip to content

Commit

Permalink
force value
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Nov 21, 2024
1 parent 8338442 commit 5c69cf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/govv3/simulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function simulateProposal(governanceAddress: Hex, client: Client, p
simulation: TenderlySimulationResponse;
}[] = [];
for (const payload of proposal.proposal.payloads) {
const client = getClient(Number(payload.chain));
const client = getClient(Number(payload.chain))!;
const controllerContract = getPayloadsController(payload.payloadsController, client);
const cache = await localCacheAdapter.getPayload({
payloadId: payload.payloadId,
Expand All @@ -59,7 +59,7 @@ export async function simulateProposal(governanceAddress: Hex, client: Client, p
simulation: result,
payloadId: payload.payloadId,
payloadInfo: cache,
client: getClient(Number(payload.chain)),
client: getClient(Number(payload.chain))!,
}),
);
payloads.push({payload: cache, simulation: result});
Expand Down
3 changes: 0 additions & 3 deletions src/reports/reserve.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ describe('reserve', () => {
`[${WBTC_MOCK.aToken}](https://etherscan.io/address/${WBTC_MOCK.aToken})`,
);
});
it('address without block explorer', () => {
expect(renderReserveValue('aToken', WBTC_MOCK, 31337 as CHAIN_ID)).toBe(WBTC_MOCK.aToken);
});
});
describe('renderReserve', () => {
it('should properly render new reserve', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {createClient, http} from 'viem';

export function getClient(chainId: number) {
const chain = ChainList[chainId as keyof typeof ChainList];
if (!chain) return undefined;
if (!chain) return;
return createClient({
transport: http(
getRPCUrl(chainId as any, {
Expand Down

0 comments on commit 5c69cf5

Please sign in to comment.