Closed fxamacker closed 8 months ago
Attention: 9 lines
in your changes are missing coverage. Please review.
Comparison is base (
7ab6f5e
) 62.53% compared to head (acdb685
) 62.57%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Is this fixing the case we ran into on Friday in Cadence, the encoding of
SomeStorable
was triggeringEncode
instead ofEncodeAsElement
? If so, could you please add a test for it?
This was the simplification I mentioned in Friday's meeting as being in progress. It was annoying to have both functions but there were bigger fish to fry.
Will look into adding tests, etc. to this PR after resolving urgent edge case I found on Sunday (related to cadence.SomeStorable
if it contains inlined array or map).
@turbolent
Is this fixing the case we ran into on Friday in Cadence, the encoding of
SomeStorable
was triggeringEncode
instead ofEncodeAsElement
? If so, could you please add a test for it?This was the simplification I mentioned in Friday's meeting as being in progress. It was annoying to have both functions but there were bigger fish to fry.
Will look into adding tests, etc. to this PR after resolving urgent edge case I found on Sunday (related to
cadence.SomeStorable
if it contains inlined array or map).
UPDATE: I made changes to Cadence with commit https://github.com/onflow/cadence/pull/2882/commits/aa087cf0b697711822031aedc8ec000dabf580b4 and it has more detailed description in the commit message.
Given this, I will add tests for StorableSlab
with SomeStorable
(in separate PR) after you confirm https://github.com/onflow/cadence/pull/2882/commits/aa087cf0b697711822031aedc8ec000dabf580b4 is OK so I can mimic that behavior in Atree tests.
Updates https://github.com/onflow/atree/issues/292
Currently, EncodeAsElement is used to encode inlined array and map, while Encode is used to encode standalone array and map.
This PR simplifies encoding API by using Encode() to encode both inlined/standalone array/map.
This helps simplify Cadence integration at https://github.com/onflow/cadence/pull/2882.
main
branchFiles changed
in the Github PR explorer