From 534e7729a7e727575bb7db99c4acda55e8ceb295 Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Thu, 18 Apr 2024 21:59:35 +0100 Subject: [PATCH] fix(create-mud): make worlds.json address type more specific (#2685) --- .changeset/shiny-donuts-matter.md | 5 +++++ e2e/packages/contracts/worlds.json.d.ts | 2 +- examples/minimal/packages/contracts/worlds.json.d.ts | 2 +- .../multiple-accounts/packages/contracts/worlds.json.d.ts | 2 +- templates/phaser/packages/contracts/worlds.json.d.ts | 2 +- templates/react-ecs/packages/contracts/worlds.json.d.ts | 2 +- templates/react/packages/contracts/worlds.json.d.ts | 2 +- templates/threejs/packages/contracts/worlds.json.d.ts | 2 +- templates/vanilla/packages/contracts/worlds.json.d.ts | 2 +- 9 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .changeset/shiny-donuts-matter.md diff --git a/.changeset/shiny-donuts-matter.md b/.changeset/shiny-donuts-matter.md new file mode 100644 index 0000000000..feb581c6da --- /dev/null +++ b/.changeset/shiny-donuts-matter.md @@ -0,0 +1,5 @@ +--- +"create-mud": patch +--- + +Made `worlds.json`'s `address` type more like viem's `Hex` type so it's easy to pass through as an argument. diff --git a/e2e/packages/contracts/worlds.json.d.ts b/e2e/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/e2e/packages/contracts/worlds.json.d.ts +++ b/e2e/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds; diff --git a/examples/minimal/packages/contracts/worlds.json.d.ts b/examples/minimal/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/examples/minimal/packages/contracts/worlds.json.d.ts +++ b/examples/minimal/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds; diff --git a/examples/multiple-accounts/packages/contracts/worlds.json.d.ts b/examples/multiple-accounts/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/examples/multiple-accounts/packages/contracts/worlds.json.d.ts +++ b/examples/multiple-accounts/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds; diff --git a/templates/phaser/packages/contracts/worlds.json.d.ts b/templates/phaser/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/templates/phaser/packages/contracts/worlds.json.d.ts +++ b/templates/phaser/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds; diff --git a/templates/react-ecs/packages/contracts/worlds.json.d.ts b/templates/react-ecs/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/templates/react-ecs/packages/contracts/worlds.json.d.ts +++ b/templates/react-ecs/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds; diff --git a/templates/react/packages/contracts/worlds.json.d.ts b/templates/react/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/templates/react/packages/contracts/worlds.json.d.ts +++ b/templates/react/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds; diff --git a/templates/threejs/packages/contracts/worlds.json.d.ts b/templates/threejs/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/templates/threejs/packages/contracts/worlds.json.d.ts +++ b/templates/threejs/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds; diff --git a/templates/vanilla/packages/contracts/worlds.json.d.ts b/templates/vanilla/packages/contracts/worlds.json.d.ts index 90ffc786f4..494829c2f9 100644 --- a/templates/vanilla/packages/contracts/worlds.json.d.ts +++ b/templates/vanilla/packages/contracts/worlds.json.d.ts @@ -1,2 +1,2 @@ -declare const worlds: Partial>; +declare const worlds: Partial>; export default worlds;