Skip to content

Commit

Permalink
fix single oracle fetch, beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-io committed Oct 30, 2024
1 parent 047158e commit 3211782
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/Lens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ contract MarketMetadataLens {
IGasOracle settlementGasOracle;
}

function metadata(IMarket[] memory markets) public view returns (MarketMetadata[] memory marketMetadata) {
function metadataBatch(IMarket[] memory markets) public view returns (MarketMetadata[] memory marketMetadata) {
marketMetadata = new MarketMetadata[](markets.length);
for (uint i = 0; i < markets.length; i++) {
marketMetadata[i] = metadata(markets[i]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perennial/sdk",
"version": "0.0.3-beta.2",
"version": "0.0.3-beta.3",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/markets/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function fetchMarketOracles(
const lensResult = await publicClient.readContract({
address: marketMetadataLens,
abi: MarketMetadataLensAbi,
functionName: 'metadata',
functionName: 'metadataBatch',
args: [marketsWithAddress.map(({ marketAddress }) => marketAddress)],
stateOverride: [
{
Expand Down

0 comments on commit 3211782

Please sign in to comment.