Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

contracts: Refactor trait Ext::*_storage_transparent functions #13594

Closed
athei opened this issue Mar 14, 2023 · 0 comments · Fixed by #13600
Closed

contracts: Refactor trait Ext::*_storage_transparent functions #13594

athei opened this issue Mar 14, 2023 · 0 comments · Fixed by #13600
Assignees
Labels
Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Comments

@athei
Copy link
Member

athei commented Mar 14, 2023

Those functions are identical with their non-transparent counterparts. This is a nuisance we want to get rid of. We can unify them if we could make them generic. However, this is currently not possible as some tests use the trait Ext as an object. Traits with generic functions are not object safe.

The obvious solution is to refactor the tests to no longer use Ext as an object. Maybe there are other solutions for removing the code duplication.

Assign to @pgherveou as soon as he is added to paritytech.

@athei athei added the Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase. label Mar 14, 2023
@github-project-automation github-project-automation bot moved this to Backlog 🗒 in Smart Contracts Mar 14, 2023
@athei athei changed the title contracts: Refacor `Ext::*_storage_ contracts: Refactor Ext::*_storage_transparent functions Mar 14, 2023
@athei athei changed the title contracts: Refactor Ext::*_storage_transparent functions contracts: Refactor trait Ext::*_storage_transparent functions Mar 14, 2023
pgherveou added a commit that referenced this issue Mar 14, 2023
fix #13594

typo fixes

remove _transparent methods
pgherveou added a commit that referenced this issue Mar 14, 2023
fix #13594

typo fixes

remove _transparent methods
@github-project-automation github-project-automation bot moved this from Backlog 🗒 to Done ✅ in Smart Contracts Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants