Skip to content

Commit e599de6

Browse files
author
Severin Siffert
authored
chore!: --with-cycles requires --wallet is enforced earlier (#3817)
1 parent 81cf22d commit e599de6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ To do this, the `@dfinity/agent` version was updated as well.
1010

1111
### fix: `dfx build` no longer requires a password for password-protected identities
1212

13+
### chore!: enforce `--wallet` requirement for `dfx canister call --with-cycles` earlier
14+
1315
### feat: add `dfx schema` support for .json files related to extensions
1416

1517
- `dfx schema --for extension-manifest` corresponds to extension.json

src/dfx/src/commands/canister/call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub struct CanisterCallOpts {
6666
/// Specifies the amount of cycles to send on the call.
6767
/// Deducted from the wallet.
6868
/// Requires --wallet as a flag to `dfx canister`.
69-
#[arg(long, value_parser = cycle_amount_parser)]
69+
#[arg(long, value_parser = cycle_amount_parser, requires("wallet"))]
7070
with_cycles: Option<u128>,
7171

7272
/// Provide the .did file with which to decode the response. Overrides value from dfx.json

0 commit comments

Comments
 (0)