Skip to content

Commit

Permalink
Merge pull request #20 from trilitech/diana@fix-wal
Browse files Browse the repository at this point in the history
fix: PvmKind check in wallet
  • Loading branch information
ajinkyaraj-23 authored Sep 10, 2024
2 parents 2ca9ec9 + 2628a7b commit 129ff86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced/wallets/react-wallet-v2/src/lib/TezosLib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 129ff86

Please sign in to comment.