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

Uses precompile_utils from frontier #2812

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

RomarQ
Copy link
Contributor

@RomarQ RomarQ commented May 23, 2024

Updated version of #2427 by @rimbi

Uses precompile-utils from frontier

@RomarQ RomarQ added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes dependencies Pull requests that update a dependency file not-breaking Does not need to be mentioned in breaking changes labels May 23, 2024
@RomarQ RomarQ requested a review from a team May 23, 2024 11:42
@RomarQ RomarQ self-assigned this May 23, 2024
@RomarQ RomarQ requested review from ahmadkaouk and Agusrodri and removed request for a team May 23, 2024 11:42
@RomarQ RomarQ added the D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. label May 23, 2024
@RomarQ RomarQ marked this pull request as draft May 23, 2024 12:46
@RomarQ RomarQ marked this pull request as ready for review June 17, 2024 17:10
@RomarQ RomarQ requested a review from librelois June 27, 2024 09:43
Copy link
Contributor

Coverage Report

@@                     Coverage Diff                      @@
##           master   rq/move-precompile-utils      +/-   ##
============================================================
- Coverage   81.33%                     81.11%   -0.22%     
- Files         301                        274      -27     
- Lines       85701                      80598    -5103     
============================================================
- Hits        69704                      65375    -4329     
- Misses      15997                      15223     -774     
Files Changed Coverage
/precompiles/xcm-transactor/src/v1/mod.rs 87.50% (-0.45%) 🔽
/precompiles/xcm-transactor/src/v2/mod.rs 78.64% (+2.22%) 🔼
/precompiles/xcm-transactor/src/v3/mod.rs 85.59% (+2.26%) 🔼
/precompiles/xcm-utils/src/lib.rs 91.67% (+0.69%) 🔼

Coverage generated Thu Jun 27 11:11:29 UTC 2024

/// System account size in bytes = Pallet_Name_Hash (16) + Storage_name_hash (16) +
/// Blake2_128Concat (16) + AccountId (20) + AccountInfo (4 + 12 + AccountData (4* 16)) = 148
pub const SYSTEM_ACCOUNT_SIZE: u64 = 148;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you move this constant in crate primitives/account instead?
This way we can remove the precompile-common crate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. dependencies Pull requests that update a dependency file not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants