sdk/js: fixes id check in token helper for sui. (#3382)

This commit is contained in:
scnale 2023-09-28 09:40:43 -03:00 committed by GitHub
parent 42e64a2e3c
commit 11a82aee56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}