Make --key work like invoke variables

Open
#2,041 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start with the stellar contract restore --key and stellar contract read --key entry points, then compare their key handling with stellar contract invoke's simplified string and JSON ScVal input. Done means both commands accept the same key formats instead of only symbols, with coverage for symbols, simplified strings, and JSON.

Written by the indexing model from the issue text.

Description

The --key parameter on the stellar contract restore and stellar contract read functions accepts only symbols.

That is not particularly useful as most contracts do not use a symbol as a storage key.

The stellar contract invoke command accepts a simplified string format and JSON as a way to provide ScVal objects.

The restore and read functions should do so as well in the --key parameter.

Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.