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 smart contract code compatibility checklist document #144

Merged
merged 8 commits into from
Apr 16, 2024

Conversation

sukanyaparashar
Copy link

This PR adds a smart contract code compatibility checklist document.

@sukanyaparashar sukanyaparashar changed the title Add code compatibility checklist document Add smart contract code compatibility checklist document Apr 1, 2024

### Usage of `multicall` methods

The smart contracts having `multicall` methods that includes more than one address or migration methods to recreate state from another chain results in exceeding the 64 accounts limit. This situation can be avoided by calling these methods in batches.

Choose a reason for hiding this comment

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

@sukanyaparashar please explain here that the 64 accounts limit does not mean 64 addresses on Solidity. We do also have 7 default accounts that used for the transaction execution and this automatically makes a limit of 57 Solidity addresses that can be included in a single transaction. The number can be even smaller if there are more internal calls between contracts.

@sukanyaparashar sukanyaparashar marked this pull request as draft April 2, 2024 22:03
@sukanyaparashar sukanyaparashar marked this pull request as ready for review April 4, 2024 17:46
Copy link

@mnedelchev-vn mnedelchev-vn left a comment

Choose a reason for hiding this comment

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

@sukanyaparashar I've looked at the changes and they're ok, I only removed some of the text about the 64 accounts limits. We will bring more details in this section after neon_emulate test is done.

Copy link

@OlehSyzonov OlehSyzonov left a comment

Choose a reason for hiding this comment

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

Some language suggestions and not critical question.

Copy link

@OlehSyzonov OlehSyzonov left a comment

Choose a reason for hiding this comment

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

Thank you for the comments resolved

@oable oable merged commit f6a09ce into main Apr 16, 2024
1 check failed
@oable oable deleted the add-code-compatibility-checklist branch April 16, 2024 06:11
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.

4 participants