Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add latest shortcut as targeted era for Cardano CLI commands #2085

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dlachaume
Copy link
Collaborator

@dlachaume dlachaume commented Nov 4, 2024

Content

This PR includes an update to the Cardano CLI calls by adding the latest shortcut as a targeted era for Cardano CLI commands.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • CHANGELOG file is updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested
  • Documentation
    • Update README file (if relevant)
    • Update documentation website (if relevant)
    • Add dev blog post (if relevant)

Issue(s)

Closes #2072

@dlachaume dlachaume self-assigned this Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

Test Results

    4 files  ±0     51 suites  ±0   10m 37s ⏱️ +3s
1 418 tests ±0  1 418 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 629 runs  ±0  1 629 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8eea1e2. ± Comparison against base commit 38ff571.

♻️ This comment has been updated with latest results.

@@ -66,6 +66,7 @@ impl CardanoCliRunner {
fn command_for_utxo(&self, address: &str, out_file: PathBuf) -> Command {
let mut command = self.get_command();
command
.arg("latest")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not obvious that this is the cardano era that is used, plus since it's used multiple times I think that you can add a LATEST_CARDANO_ERA static variable to encompass those concerns.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I’ve addressed your comment in this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Cardano CLI calls to new interface
2 participants