Skip to content

Commit 5aa8a3a

Browse files
jaxernstfrolic
andauthored
fix(cli): use system label when verifying (#3503)
Co-authored-by: Kevin Ingersoll <kingersoll@gmail.com>
1 parent ce0e08e commit 5aa8a3a

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/silly-kids-enjoy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@latticexyz/cli": patch
3+
---
4+
5+
Fixed an issue with `mud verify` where system contract artifacts were being resolved incorrectly.

packages/cli/src/commands/verify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ const commandModule: CommandModule<Options, Options> = {
7272
// TODO: replace with `resolveConfig` and support for linked libs
7373
const configSystems = await resolveSystems({ rootDir, config });
7474
const systems = configSystems.map((system) => {
75-
const contractData = getContractData(`${system.name}.sol`, system.name, outDir);
75+
const contractData = getContractData(`${system.label}.sol`, system.label, outDir);
7676
return {
77-
name: system.name,
77+
name: system.label,
7878
bytecode: contractData.bytecode,
7979
};
8080
});

0 commit comments

Comments
 (0)