From 2628a7b64b49719b5bf7af961f55b0e2bc01ded7 Mon Sep 17 00:00:00 2001 From: dianasavvatina Date: Wed, 4 Sep 2024 16:36:24 +0100 Subject: [PATCH] fix: PvmKind in wallet --- advanced/wallets/react-wallet-v2/src/lib/TezosLib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/wallets/react-wallet-v2/src/lib/TezosLib.ts b/advanced/wallets/react-wallet-v2/src/lib/TezosLib.ts index be9835c89..d578e4529 100644 --- a/advanced/wallets/react-wallet-v2/src/lib/TezosLib.ts +++ b/advanced/wallets/react-wallet-v2/src/lib/TezosLib.ts @@ -153,7 +153,7 @@ export default class TezosLib { message: op.message, }; case TezosOperationType.SMART_ROLLUP_ORIGINATE: - if (!(op.pvm_kind in PvmKind)) { + if (!Object.values(PvmKind).includes(op.pvm_kind)) { throw new Error(`Invalid PvmKind: ${op.pvm_kind}`); } return {