feat(delegation): make Token constructors resemble invocation.New() signature

This commit is contained in:
Steve Moyer
2024-11-25 15:12:29 -05:00
parent d90715d1fe
commit 60bdc8873b
9 changed files with 173 additions and 185 deletions

View File

@@ -166,7 +166,7 @@ func randToken() (*delegation.Token, cid.Cid, []byte) {
opts = append(opts, delegation.WithMeta(randomString(8), randomString(10)))
}
t, err := delegation.New(priv, aud, cmd, pol, opts...)
t, err := delegation.New(iss, aud, cmd, pol, opts...)
if err != nil {
panic(err)
}