Skip to content

Commit 09fece7

Browse files
committed
fix: receipt audience
1 parent 89ac768 commit 09fece7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

ucan/receipt/options.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import "github.com/alanshaw/ucantone/ucan/invocation"
55
type Option = invocation.Option
66

77
var (
8-
WithAudience = invocation.WithAudience
98
WithExpiration = invocation.WithExpiration
109
WithNoExpiration = invocation.WithNoExpiration
1110
WithNonce = invocation.WithNonce

ucan/receipt/receipt.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ func Issue[O, X ipld.Any](
123123
return nil, err
124124
}
125125

126+
options = append(options, invocation.WithAudience(executor))
127+
126128
inv, err := invocation.Invoke(executor, executor.DID(), Command, &args, options...)
127129
if err != nil {
128130
return nil, err

0 commit comments

Comments
 (0)