hyperledger-solang / solang

Solidity Compiler for Solana and Polkadot
https://solang.readthedocs.io/
Apache License 2.0
1.27k stars 216 forks source link

Fix panics caused by shifting(#1618) #1627

Closed YancyParker closed 8 months ago

YancyParker commented 9 months ago

Fixed the bug where there was no load when the right expression of the shift calculation is a structure member.

YancyParker commented 8 months ago

This could really use a test case

Ok, I will add a test case.

codecov-commenter commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.58%. Comparing base (0bea68c) to head (f33fbaa).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1627 +/- ## ========================================== - Coverage 88.58% 88.58% -0.01% ========================================== Files 150 150 Lines 69331 69342 +11 ========================================== + Hits 61416 61424 +8 - Misses 7915 7918 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

YancyParker commented 8 months ago

I have successfully run the cargo test --workspace command locally, but it failed on CI. I'm not sure if it's due to recent changes.

seanyoung commented 8 months ago

I have successfully run the cargo test --workspace command locally, but it failed on CI. I'm not sure if it's due to recent changes.

It was an intermittent failure in the integration tests. Rerunning it fixed the problem.