Skip to content

Commit

Permalink
fix(cli): add missing await (#3119)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Sep 3, 2024
1 parent fc1e2a5 commit ef6f7c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-walls-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

Fixed regression in 2.2.1 where deployment of modules already installed would throw an error instead of skipping.
2 changes: 1 addition & 1 deletion packages/cli/src/deploy/ensureModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function ensureModules({
const params = mod.installAsRoot
? ({ functionName: "installRootModule", args: [moduleAddress, mod.installData] } as const)
: ({ functionName: "installModule", args: [moduleAddress, mod.installData] } as const);
return writeContract(client, {
return await writeContract(client, {
chain: client.chain ?? null,
address: worldDeploy.address,
abi,
Expand Down

0 comments on commit ef6f7c0

Please sign in to comment.