From ce7f653ab053a8d910471ab0192a74cffe328f5b Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Tue, 5 Nov 2024 15:28:31 -0500 Subject: [PATCH] chore(invocation): clean up left-over (and unneeded) conversion of prf --- token/invocation/ipld.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/token/invocation/ipld.go b/token/invocation/ipld.go index 431e3a4..b477eb7 100644 --- a/token/invocation/ipld.go +++ b/token/invocation/ipld.go @@ -231,19 +231,13 @@ func (t *Token) toIPLD(privKey crypto.PrivKey) (datamodel.Node, error) { Values: t.arguments, } - // TODO: reuse instead of copy? it's immutable - prf := make([]cid.Cid, len(t.proof)) - for i, c := range t.proof { - prf[i] = c - } - model := &tokenPayloadModel{ Iss: t.issuer.String(), Aud: aud, Sub: t.subject.String(), Cmd: t.command.String(), Args: args, - Prf: prf, + Prf: t.proof, Meta: t.meta, Nonce: t.nonce, Exp: exp,