Skip to content

Commit ef6f7c0

Browse files
authored
fix(cli): add missing await (#3119)
1 parent fc1e2a5 commit ef6f7c0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/shy-walls-suffer.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@latticexyz/cli": patch
3+
---
4+
5+
Fixed regression in 2.2.1 where deployment of modules already installed would throw an error instead of skipping.

packages/cli/src/deploy/ensureModules.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function ensureModules({
4545
const params = mod.installAsRoot
4646
? ({ functionName: "installRootModule", args: [moduleAddress, mod.installData] } as const)
4747
: ({ functionName: "installModule", args: [moduleAddress, mod.installData] } as const);
48-
return writeContract(client, {
48+
return await writeContract(client, {
4949
chain: client.chain ?? null,
5050
address: worldDeploy.address,
5151
abi,

0 commit comments

Comments
 (0)