-
Notifications
You must be signed in to change notification settings - Fork 1
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
Creating 1155 Collection with Privy Provider #6
Comments
hey @mattleesounds could you provide a more full code example? |
Sure, here ya go
|
hey so i tried to repro this locally, it looks like so it wouldn't work as an argument for publicClient for now. we could add a better example and support for integration with privy. for now I found in their docs examples of creating a publicClient for using with other libs: https://docs.privy.io/guide/react/recipes/account-abstraction/pimlico#_4-create-a-smart-account-for-your-user Perhaps until we better support privy you could manually setup a PublicClient like those example? |
Will attempt! Thanks for the privy resources. |
@oveddan Hey i am trying to mint nft's i saw the abi : "inputs": [ |
@oveddan check this out: https://github.com/Nith567/mint-/blob/main/src/components/Transact.tsx |
@oveddan FYI, this turned out to be the relevant docs for integration with privy-expo SDK https://docs.privy.io/guide/expo/embedded/3p-libraries |
Can you try with an NFT that has a token created/registered on it with a sales strategy? |
great link @mattleesounds thank you! we can work on adding a section on privy integration to the docs, or look at ways to have more native integration |
@iainnash yeah it did solved after i put correct parameters, tried through abi using wagmi hooks it worked out instead of sdk. |
Hello, I am trying to deploy a new 1155 collection from a Privy embedded wallet and am getting this error:
Error creating collection: [TypeError: publicClient.readContract is not a function (it is undefined)]
Based on that error and looking at the SDK code, it appears that the SDK for creating collections only works with Viem providers, which is the only one with the readContract function as far as I can tell. Is this the case, and if so, is it still possible to create collections from a Privy Provider? FYI, Privy Provider follows the EIP 1193 standard.
The text was updated successfully, but these errors were encountered: