Skip to content

Commit

Permalink
fix(config): Incorrect path in local vfs
Browse files Browse the repository at this point in the history
Closes #233
  • Loading branch information
jubnzv committed Dec 25, 2024
1 parent 5551085 commit 46b1f7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Callgraph: Don't add state write effects when changing local maps/strings/cells
- Regression in the single-contract mode execution: Issue [#233](https://github.com/nowarp/misti/issues/233)

## [0.6.1] - 2024-12-22

Expand Down
16 changes: 12 additions & 4 deletions src/internals/tact/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,22 @@ export class TactConfigManager {
) as ProjectName,
vfs: VirtualFileSystem,
): TactConfigManager {
const absoluteProjectRoot = vfs.resolve(projectRoot);
const absoluteContractPath = path.resolve(projectRoot, contractPath);

let vfsContractPath: string = "";
if (vfs.type === "local") {
vfsContractPath = path.relative(projectRoot, contractPath);
} else {
const absoluteProjectRoot = vfs.resolve(projectRoot);
const absoluteContractPath = path.resolve(projectRoot, contractPath);
vfsContractPath = path.relative(
absoluteProjectRoot,
absoluteContractPath,
);
}
const tactConfig: TactConfig = {
projects: [
{
name: projectName,
path: path.relative(absoluteProjectRoot, absoluteContractPath),
path: vfsContractPath,
output: "/tmp/misti/output", // never used
options: {
debug: false,
Expand Down

0 comments on commit 46b1f7b

Please sign in to comment.