metaplex-foundation / sugar

Candy Machine Rust CLI.
Apache License 2.0
203 stars 116 forks source link

feature: Add `--authority` option to `withdraw` subcommand #465

Closed KartikSoneji closed 1 year ago

KartikSoneji commented 1 year ago

Allows listing other user's candy machines by passing --authority, useful for debugging. Fixes the authority offset from 8 to 16 for Candy Machine v3 (replaces #464). Also fixes clippy warnings.

> sugar withdraw -h

sugar-withdraw
Withdraw funds a from candy machine account closing it

USAGE:
    sugar withdraw [OPTIONS]

OPTIONS:
        --authority <AUTHORITY>
            Address of authority to find candy machines for. If authority != keypair.pubkey then
            force --list. Defaults to keypair.pubkey
...
samuelvanderwaal commented 1 year ago

Looks good, thanks for the PR, @KartikSoneji!