-
Notifications
You must be signed in to change notification settings - Fork 56
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 node representation for Block #2746
fix: Use node representation for Block #2746
Conversation
Block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks for a quick fix
@@ -30,7 +30,7 @@ import ( | |||
// Schema is the IPLD schema type that represents a `Block`. | |||
var ( | |||
Schema schema.Type | |||
SchemaPrototype schema.TypedPrototype | |||
SchemaPrototype ipld.NodePrototype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: I wonder where this ipld
coming from. I don't see any import that ends with "ipld"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go-ipld-prime
is the package 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
## Relevant issue(s) Resolves sourcenetwork#2745 ## Description This PR ensures that the node being passed to the link system is in it's representation form. This will allow the use of optional fields. Node that the 2 added `block` unit tests are there to cover when the optional `isEncrypted` field will be added to `Block` ipld schema.
Relevant issue(s)
Resolves #2745
Description
This PR ensures that the node being passed to the link system is in it's representation form. This will allow the use of optional fields.
Node that the 2 added
block
unit tests are there to cover when the optionalisEncrypted
field will be added toBlock
ipld schema.Tasks
How has this been tested?
make test
Specify the platform(s) on which this was tested: