[BUG]: `~` Not Followed
- Dominant language
- Go
- Stars
- 7
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current behavior
When using `~` in a path, the CLI autocomplete works, but the path is not followed correctly when searching for the file.

### Expected behavior
`~` should properly replace to `$HOME`.
### Steps to reproduce
1. Connect to an endpoint
2. Open a wallet
3. Upload a contract using a path prefixed by `~`
### Environment
```markdown
- OS: Mac OS
```
### Anything else?
_No response_
Contributor guide
Research direction
Start with the CLI upload-contract flow described in the reproduction steps and reproduce the issue on Mac OS using a path prefixed with `~`. Trace how the path is handled during file search; done means `~` resolves to `$HOME` and the contract file is found correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100