-
Notifications
You must be signed in to change notification settings - Fork 41
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
Increase existential deposit #1397
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1397 +/- ##
=======================================
Coverage 93.19% 93.19%
=======================================
Files 131 131
Lines 29241 29241
=======================================
Hits 27252 27252
Misses 1989 1989
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
pub const ContractsDepositPerByte: Balance = deposit(0,1); | ||
pub const ContractsDepositPerItem: Balance = deposit(1,0); | ||
pub const ContractsMaxCodeLen: u32 = 123 * 1024; | ||
pub const ContractsMaxDebugBufferLen: u32 = 2 * 1024 * 1024; | ||
pub const ContractsMaxDelegateDependencies: u32 = 32; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you miss to remove ContractsMaxDelegateDependencies
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, because of this. Might be worth to add a TODO with an issue to remove it as soon as the migration to remove contracts storage is done.
// `ContractInfo` struct that we need for `ClearContractsChildTries` but pallet-contracts | ||
// doesn't expose publicly. | ||
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo, MaxEncodedLen)] | ||
pub struct ContractInfo { | ||
pub trie_id: TrieId, | ||
pub code_hash: CodeHash, | ||
pub storage_bytes: u32, | ||
pub storage_items: u32, | ||
pub storage_byte_deposit: Balance, | ||
pub storage_item_deposit: Balance, | ||
pub storage_base_deposit: Balance, | ||
pub delegate_dependencies: | ||
BoundedBTreeMap<CodeHash, Balance, ContractsMaxDelegateDependencies>, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it do?
What important points should reviewers know?
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues?
References