Skip to content

Commit deb5cea

Browse files
committed
fix v1->v3 web3api.meta migrator
1 parent 03ca9d2 commit deb5cea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/js/core/src/manifest/formats/web3api.meta/migrators/0.0.1-prealpha.1_to_0.0.1-prealpha.3.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ import { MetaManifest as OldManifest } from "../0.0.1-prealpha.1";
44
import { MetaManifest as NewManifest } from "../0.0.1-prealpha.3";
55

66
export function migrate(old: OldManifest): NewManifest {
7-
return {
7+
const manifest: Record<string, unknown> = {
88
...old,
9+
};
10+
11+
delete manifest.name;
12+
13+
return {
14+
...manifest,
915
__type: "MetaManifest",
1016
format: "0.0.1-prealpha.3",
1117
displayName: old.name,

0 commit comments

Comments
 (0)