-
Notifications
You must be signed in to change notification settings - Fork 113
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
Update SDK encoding/decoding for Cadence 1.0 #1863
Conversation
🦋 Changeset detectedLatest commit: 5ed4763 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -638,6 +641,9 @@ export const Optional = < | |||
v => v | |||
) | |||
|
|||
/** | |||
* @deprecated Reference values cannot be imported into the Cadence interpreter, will be removed in future versions | |||
*/ | |||
export const Reference = typedef( |
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.
Don't know what the deal is with this... if it's a relic of the past or just a mistake altogether, because Reference
values cannot be imported into the Cadence interpreter, so this will never work.
packages/types/src/types.ts
Outdated
(v: { | ||
start: TypeDescriptorInput<T> | ||
end: TypeDescriptorInput<T> | ||
step?: TypeDescriptorInput<T> | ||
}) => { |
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.
I would have prefered to use a tuple here for brevity, but it feels more explicit to use an object for the decoding, and I think there's value in encoding/decoding formats being in sync
closes #1861