-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Type 0x2::kiosk::Kiosk is not registered #17256
Comments
Looks like the error is coming out of: which is called from: |
Have you specified that you want to call a testnet kiosk? const kioskId = "0x6ca6a0fbcd8bb6952382aa0f590c8ab9c46d102d6704e186a6cc0a1c235d524d"
const kioskClient = new KioskClient({
client,
network: "testnet",
});
const kiosk = await kioskClient.getKiosk(kioskId)
console.log({kiosk}) |
Yes, that's specified. My code:
But I found out that this error only occurs when I provide I am able to get the response back without the error if I remove |
I am able to get what I want for now but I will leave this issue open as I believe this is still an issue if we want to set |
This may be related to the Line 17 in 4313fc2
Lines 14 to 20 in 4313fc2
There is some existing work that entirely removes the bcs registry and ensures that the SDKs aren't dependent on types being registered as a side-effect of importing files. If this is a blocker, we can probably temporarily set |
The registry has been removed from @mysten/bcs, and the kiosk sdk has been updated to use the updated bcs APIs, so this should no-longer be an issue |
Steps to Reproduce Issue
kioskClient.getKiosk(kioskId) where kioskId is 0x6ca6a0fbcd8bb6952382aa0f590c8ab9c46d102d6704e186a6cc0a1c235d524d on testnet: https://testnet.suivision.xyz/object/6ca6a0fbcd8bb6952382aa0f590c8ab9c46d102d6704e186a6cc0a1c235d524d
Expected Result
Expected getKiosk to return the kiosk data.
Actual Result
An error was returned:
System Information
The text was updated successfully, but these errors were encountered: