Skip to content

OETH L-09 #1500

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

Merged
merged 3 commits into from
May 22, 2023
Merged

OETH L-09 #1500

merged 3 commits into from
May 22, 2023

Conversation

sparrowDom
Copy link
Member

Use safe cast

@sparrowDom sparrowDom requested a review from naddison36 May 17, 2023 21:19
@DanielVF DanielVF added the contracts Works related to contracts label May 18, 2023
@DanielVF
Copy link
Collaborator

What's your thinking on copying the code in from OpenZeppilin vs importing it? I can see pros and cons on each side, just curious on how you see it.

@sparrowDom
Copy link
Member Author

I though the whole library gets included into the bytecode by the compiler. Have done a little digging and the compiler seems to include only library functions that are actually consumed by the contract: documentation

So my original reason isn't valid. Changing to library import

@sparrowDom sparrowDom requested a review from shahthepro as a code owner May 18, 2023 22:03
@sparrowDom sparrowDom merged commit 9f993d5 into master May 22, 2023
@sparrowDom sparrowDom deleted the sparrowDom/oeth_curve_l_09 branch May 22, 2023 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contracts Works related to contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants