sdk/js: fixes id check in token helper for sui. (#3382)
This commit is contained in:
parent
42e64a2e3c
commit
11a82aee56
|
@ -310,7 +310,7 @@ export const getTokenFromTokenRegistry = async (
|
|||
const tokenRegistryPackageId = getPackageIdFromType(
|
||||
tokenBridgeStateFields.token_registry?.type
|
||||
);
|
||||
if (!tokenRegistryObjectId) {
|
||||
if (!tokenRegistryPackageId) {
|
||||
throw new Error("Unable to fetch token registry package ID");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue