Skip to content

Commit

Permalink
fixup! chore: parse ether value with units
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Dec 16, 2024
1 parent 82a6e12 commit c6b98f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bolt-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ pub enum EigenLayerSubcommand {
/// The name of the strategy to deposit into.
#[clap(long, env = "EIGENLAYER_STRATEGY")]
strategy: EigenLayerStrategy,
/// The amount to deposit into the strategy, in ETH
/// The amount to deposit into the strategy, in units (e.g. '1ether', '10gwei')
/// If no unit is provided, it is assumed to be in wei.
#[clap(long, env = "EIGENLAYER_STRATEGY_DEPOSIT_AMOUNT", value_parser = parse_ether_value)]
amount: U256,
},
Expand Down
2 changes: 1 addition & 1 deletion testnets/holesky/QUICK_START.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ First, you need to install the
- `--rpc-url` is the URL of the Ethereum node to send transactions to (e.g. Geth)
- `--operator-private-key` is the private key of your registered operator address
- `--strategy` is the **NAME** of the strategy to deposit into. [possible values: st-eth, r-eth, w-eth, cb-eth, m-eth].
- `--amount` is the amount to deposit into the strategy (e.g. '1eth', '0.1eth', '100gwei', etc.)
- `--amount` is the amount to deposit into the strategy (e.g. '1ether', '0.1ether', '100gwei', etc.)

3. Register into the Bolt AVS:

Expand Down
2 changes: 1 addition & 1 deletion testnets/holesky/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Options:
--strategy <STRATEGY>
The name of the strategy to deposit into [env: EIGENLAYER_STRATEGY=] [possible values: st-eth, r-eth, w-eth, cb-eth, m-eth]
--amount <AMOUNT>
The amount to deposit into the strategy. (examples: "1eth", "0.2eth", "100gwei") [env: EIGENLAYER_STRATEGY_DEPOSIT_AMOUNT=]
The amount to deposit into the strategy. (examples: "1ether", "0.2ether", "100gwei") [env: EIGENLAYER_STRATEGY_DEPOSIT_AMOUNT=]
-h, --help
Print help
```
Expand Down

0 comments on commit c6b98f0

Please sign in to comment.