Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use the new library to parse cid from builtin_actor_event #1292

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

Terryhung
Copy link
Collaborator

@Terryhung Terryhung commented Apr 25, 2024

Description

There is an error during the parsing the cid in builtin_actor_events.

ERROR	lily/tasks/builtinactorevent	builtinactorevent/task.go:158	cbor.Unmarshal err: invalid cid: invalid cid: expected 1 as the cid version number, got: 0, key: piece-cid, value: [216 42 88 40 0 1 129 226 3 146 32 32 228 70 102 200 187 252 1 84 224 140 131 94 192 12 79 75 10 106 245 208 197 80 239 236 194 115 180 86 152 152 84 41]

Solution

Use the recommended library to parse it: https://github.com/ipld/go-ipld-prime.

@Terryhung Terryhung marked this pull request as ready for review April 25, 2024 05:33
@Terryhung Terryhung force-pushed the terryhung/fix-builtin-actor-cid branch from fe0f79a to 3f047f6 Compare April 25, 2024 06:40
@Terryhung Terryhung merged commit f470e2b into master Apr 25, 2024
7 checks passed
@Terryhung Terryhung deleted the terryhung/fix-builtin-actor-cid branch April 25, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant