Skip to content

Allow nil values in JSON-CDC decoding - #1045

Merged
turbolent merged 1 commit into
auto-update-onflow-cadence-v1.10.7from
bastian/allow-nil-values
Nov 5, 2026
Merged

turbolent merged 1 commit into
auto-update-onflow-cadence-v1.10.7from
bastian/allow-nil-values

Conversation

@turbolent

Copy link
Copy Markdown
Member

Depends on #1044 (Cadence v1.10.7).
Related: onflow/cadence#4535, onflow/flow-go#8701

Description

Export truncates a cyclic reference value to nil, and JSON-CDC encodes it as null.
Cadence v1.10.7 adds the decoder option WithAllowNilValues.

This PR enables the option in the default JSON options of the gRPC and HTTP clients, next to WithAllowUnstructuredStaticTypes, so event payloads and script results with null values decode.

Transaction argument decoding is unchanged.


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@turbolent
turbolent requested a review from a team as a code owner November 5, 2026 16:15
@turbolent
turbolent added this pull request to stack #1046 November 5, 2026 16:15
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@turbolent
turbolent force-pushed the bastian/allow-nil-values branch from d9d3967 to 15d41f2 Compare November 5, 2026 17:38
@turbolent
turbolent merged commit c68f91a into master Nov 5, 2026
5 checks passed
@turbolent
turbolent deleted the bastian/allow-nil-values branch November 5, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址