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

interop: add contract storage limits #3232

Merged
merged 3 commits into from
Nov 28, 2023
Merged

interop: add contract storage limits #3232

merged 3 commits into from
Nov 28, 2023

Conversation

AnnaShaleva
Copy link
Member

Users of NeoGo interop package may have a demand to use these limits for custom purposes, it would be nice to have them as constants.

@roman-khimov, do we need it? If so, then I'll create a test and update deps. Draft until that.

Users of NeoGo interop package may have a demand to use these limits
for custom purposes, it would be nice to have them as constants.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

You can reuse limits here, it doesn't have anything but constants.

pkg/interop/storage/limits.go Show resolved Hide resolved
pkg/interop/storage/limits.go Show resolved Hide resolved
@AnnaShaleva
Copy link
Member Author

You can reuse limits here, it doesn't have anything but constants.

BTW, I'm not sure that it's good to have neo-go dependency in interops. And I'm afraid that we won't be able to compile it, that's the case.

@roman-khimov
Copy link
Member

Argh! Modules. I forgot about modules. Yeah, that might be a problem.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva AnnaShaleva marked this pull request as ready for review November 28, 2023 07:51
@AnnaShaleva AnnaShaleva added this to the v0.105.0 milestone Nov 28, 2023
@AnnaShaleva AnnaShaleva added the smartcontract Smart contracts and associated package label Nov 28, 2023
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fd7b7ff) 85.30% compared to head (2eab743) 85.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3232      +/-   ##
==========================================
+ Coverage   85.30%   85.38%   +0.07%     
==========================================
  Files         327      327              
  Lines       44081    44081              
==========================================
+ Hits        37603    37638      +35     
+ Misses       4994     4957      -37     
- Partials     1484     1486       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roman-khimov roman-khimov merged commit 2f9b4a2 into master Nov 28, 2023
17 of 18 checks passed
@roman-khimov roman-khimov deleted the storage-limits branch November 28, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smartcontract Smart contracts and associated package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants