Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mint client to fix reading from subgraph #392

Merged
merged 4 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/protocol-sdk/src/create/1155-create-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const DEFAULT_SALE_SETTINGS = {
};

// Hardcode the permission bit for the minter
const PERMISSION_BIT_MINTER = 2n ** 2n;
const PERMISSION_BIT_MINTER = 4n;

type ContractType =
| {
Expand Down
8 changes: 6 additions & 2 deletions packages/protocol-sdk/src/mint/mint-api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ export class MintAPIClient {
id: `${contractAddress.toLowerCase()}-${tokenId.toString()}`,
},
});
return response.zoraCreateToken?.salesStrategies?.find(() => true)
?.fixedPriceMinterAddress;

const fixedPriceAddress =
response.data?.zoraCreateToken?.salesStrategies?.find(() => true)
?.fixedPrice?.address;

return fixedPriceAddress;
});
}

Expand Down
Loading