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

Allow public unsafe smart contract functions to be called from outside #695

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

Narasimha1997
Copy link
Contributor

What was wrong?

unsafe functions weren't allowed to be public (pub) as described in #687

How was it fixed?

The issue was fixed by removing the block of code that checked whether the function is both pub and unsafe. i.e by removing the following check.

Later, the tests were updated to respect the same by updating the snapshots using cargo insta review.

@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2022

Codecov Report

Merging #695 (fc74ab6) into master (182d189) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #695      +/-   ##
==========================================
- Coverage   82.06%   82.05%   -0.01%     
==========================================
  Files         125      125              
  Lines       10881    10876       -5     
==========================================
- Hits         8929     8924       -5     
  Misses       1952     1952              
Impacted Files Coverage Δ
crates/analyzer/src/db/queries/functions.rs 90.10% <ø> (-0.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 182d189...fc74ab6. Read the comment docs.

Copy link
Member

@g-r-a-n-t g-r-a-n-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@g-r-a-n-t
Copy link
Member

just need to run cargo fmt

@Narasimha1997
Copy link
Contributor Author

@g-r-a-n-t , yup. Formatting issues are fixed in the latest commit.

@g-r-a-n-t g-r-a-n-t merged commit 4aa56e2 into ethereum:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants