Skip to content

Commit 19314f6

Browse files
committed
fix(plugin-blocklet): fix import @ocap/mcrypto
1 parent aba9043 commit 19314f6

File tree

1 file changed

+1
-3
lines changed
  • plugins/vite-plugin-blocklet/libs

1 file changed

+1
-3
lines changed

plugins/vite-plugin-blocklet/libs/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { promises as fs } from 'node:fs';
22
import YAML from 'yaml';
3-
import Mcrypto from '@ocap/mcrypto';
3+
import { types } from '@ocap/mcrypto';
44
import { toHex } from '@ocap/util';
55
import { fromPublicKey, isValid } from '@arcblock/did';
66

7-
const { types } = Mcrypto;
8-
97
export function toBlockletDid(name) {
108
if (isValid(name)) {
119
return name;

0 commit comments

Comments
 (0)