AbstractSDK / cw-orchestrator

All-in-one Rust-based CosmWasm testing, scripting, and deployment tool.
https://orchestrator.abstract.money
GNU General Public License v3.0
76 stars 18 forks source link

Fix wrong default state file #333

Closed Buckram123 closed 7 months ago

Buckram123 commented 7 months ago

Fixes ORC-79. Default state_file have absolute path, instead of relative. But we only create ~/.cw-orchestrator dir if path is relative: https://github.com/AbstractSDK/cw-orchestrator/blob/0f57bf06a740b68d19c60a19ddbce94f2ca857e0/cw-orch-daemon/src/state.rs#L116-L148

This was tested with on https://github.com/AbstractSDK/savings-app/pull/19

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0f57bf0) 66.1% compared to head (55b26d2) 66.1%.

Additional details and impacted files | [Files](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK) | Coverage Δ | | |---|---|---| | [packages/cw-orch-core/src/env.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb3JlL3NyYy9lbnYucnM=) | `84.0% <100.0%> (ø)` | |