@@ -27,11 +27,10 @@ var addrCommands = []cli.Command{
2727}
2828
2929const (
30- groupKeyName = "group_key"
31-
32- amtName = "amt"
33-
34- assetVersionName = "asset_version"
30+ groupKeyName = "group_key"
31+ amtName = "amt"
32+ assetVersionName = "asset_version"
33+ proofCourierAddrName = "proof_courier_addr"
3534)
3635
3736var newAddrCommand = cli.Command {
@@ -53,6 +52,13 @@ var newAddrCommand = cli.Command{
5352 Name : assetVersionName ,
5453 Usage : "the asset version of the asset to receive" ,
5554 },
55+ cli.StringFlag {
56+ Name : proofCourierAddrName ,
57+ Usage : "(optional) the address of the proof courier " +
58+ "to use for this specific address, if the " +
59+ "default proof courier should be " +
60+ "overwritten; format: protocol://host:port" ,
61+ },
5662 },
5763 Action : newAddr ,
5864}
@@ -80,9 +86,10 @@ func newAddr(ctx *cli.Context) error {
8086 }
8187
8288 addr , err := client .NewAddr (ctxc , & taprpc.NewAddrRequest {
83- AssetId : assetID ,
84- Amt : ctx .Uint64 (amtName ),
85- AssetVersion : assetVersion ,
89+ AssetId : assetID ,
90+ Amt : ctx .Uint64 (amtName ),
91+ AssetVersion : assetVersion ,
92+ ProofCourierAddr : ctx .String (proofCourierAddrName ),
8693 })
8794 if err != nil {
8895 return fmt .Errorf ("unable to make addr: %w" , err )
0 commit comments