diff --git a/token/delegation/delegationtest/data/TokenCarolDan_InvalidExpired.dagcbor b/token/delegation/delegationtest/data/TokenCarolDan_InvalidExpired.dagcbor index 89b0298..8a74f36 100644 Binary files a/token/delegation/delegationtest/data/TokenCarolDan_InvalidExpired.dagcbor and b/token/delegation/delegationtest/data/TokenCarolDan_InvalidExpired.dagcbor differ diff --git a/token/delegation/delegationtest/data/TokenDanErin_InvalidExpired.dagcbor b/token/delegation/delegationtest/data/TokenDanErin_InvalidExpired.dagcbor index c910a1c..c60d268 100644 Binary files a/token/delegation/delegationtest/data/TokenDanErin_InvalidExpired.dagcbor and b/token/delegation/delegationtest/data/TokenDanErin_InvalidExpired.dagcbor differ diff --git a/token/delegation/delegationtest/data/TokenErinFrank_InvalidExpired.dagcbor b/token/delegation/delegationtest/data/TokenErinFrank_InvalidExpired.dagcbor index f0b411f..56a2f7e 100644 Binary files a/token/delegation/delegationtest/data/TokenErinFrank_InvalidExpired.dagcbor and b/token/delegation/delegationtest/data/TokenErinFrank_InvalidExpired.dagcbor differ diff --git a/token/delegation/delegationtest/generator/generator.go b/token/delegation/delegationtest/generator/generator.go index f2f088d..65982e5 100644 --- a/token/delegation/delegationtest/generator/generator.go +++ b/token/delegation/delegationtest/generator/generator.go @@ -235,8 +235,7 @@ func (g *generator) writeGoFile() error { fmt.Fprintln(f) fmt.Fprintf(f, "var %s = []cid.Cid{\n", c.name) - slices.Reverse(c.prf) - for _, d := range c.prf { + for _, d := range slices.Backward(c.prf) { fmt.Fprintf(f, "\t%s,\n", refs[d]) } diff --git a/token/delegation/delegationtest/token_gen.go b/token/delegation/delegationtest/token_gen.go index 2918178..0d367f7 100644 --- a/token/delegation/delegationtest/token_gen.go +++ b/token/delegation/delegationtest/token_gen.go @@ -75,17 +75,17 @@ var ( ) var ( - TokenCarolDan_InvalidExpiredCID = cid.MustParse("bafyreieokte3abvnnj77uhhlwbem4fukvaujpp4jtirqof2r6zrdwv6may") + TokenCarolDan_InvalidExpiredCID = cid.MustParse("bafyreici5ggrh6yyoqfqwfssks4737icit2exxrhhcsljpc6lniz64ejay") TokenCarolDan_InvalidExpired = mustGetDelegation(TokenCarolDan_InvalidExpiredCID) ) var ( - TokenDanErin_InvalidExpiredCID = cid.MustParse("bafyreia76qfn2krqnzzgzoyvttei5fc74ybyidqb6omoa26jn6u2wy4kmi") + TokenDanErin_InvalidExpiredCID = cid.MustParse("bafyreidnkdvkwhuoiwldua4z7mupuoaixktmuihd4h3gqff4nk4lfuoxlq") TokenDanErin_InvalidExpired = mustGetDelegation(TokenDanErin_InvalidExpiredCID) ) var ( - TokenErinFrank_InvalidExpiredCID = cid.MustParse("bafyreiaglb3rgguhlsjpkpuowr3zfwjrp2c6o2pl3llib3kj2pzusaecda") + TokenErinFrank_InvalidExpiredCID = cid.MustParse("bafyreighom66dfg3scp26huljbiovkuuv2bh4izdqahccutrilqz46nz3e") TokenErinFrank_InvalidExpired = mustGetDelegation(TokenErinFrank_InvalidExpiredCID) )