Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
fix: expose ozVotesStorageProof strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet committed Jan 30, 2024
1 parent 9dc7be0 commit ae2d89e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/strategies/starknet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import createErc20VotesStrategy from './erc20Votes';
import { hexPadLeft } from '../../utils/encoding';
import type { Strategy, NetworkConfig } from '../../types';
import createEvmSlotValueStrategy from './evmSlotValue';
import createOzVotesStorageProofStrategy from './ozVotesStorageProof';

export function getStrategy(address: string, networkConfig: NetworkConfig): Strategy | null {
const strategy = networkConfig.strategies[hexPadLeft(address)];
Expand All @@ -25,5 +26,9 @@ export function getStrategy(address: string, networkConfig: NetworkConfig): Stra
return createEvmSlotValueStrategy(strategy.params);
}

if (strategy.type === 'ozVotesStorageProof') {
return createOzVotesStorageProofStrategy(strategy.params);
}

return null;
}

0 comments on commit ae2d89e

Please sign in to comment.