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

Add encoding/decoding dictionary static type info #1036

Merged
merged 11 commits into from
Jun 30, 2021
Prev Previous commit
Next Next commit
Merge branch 'supun/array-static-type' of https://github.com/onflow/c…
…adence into supun/dictionary-static-type
  • Loading branch information
SupunS committed Jun 30, 2021
commit d0306c551d69964f242a6b77ae815dd1d3d50b9c
2 changes: 1 addition & 1 deletion runtime/interpreter/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,7 @@ func decodeArrayElements(array *ArrayValue, elementContent []byte) error {
}

func decodeDictionaryMetaInfo(v *DictionaryValue, content []byte) error {
if v.encodingVersion == 4 {
if v.encodingVersion < 4 {
// In encoding version 4, no meta info was available for dictionaries.
// The raw content only consist of the entries.
v.entriesContent = content
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.