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

Support for AccountId20 type #1182

Open
JoshOrndorff opened this issue Jun 27, 2023 · 1 comment
Open

Support for AccountId20 type #1182

JoshOrndorff opened this issue Jun 27, 2023 · 1 comment

Comments

@JoshOrndorff
Copy link

I am working on a chain for the PBA where we would like to use both evm and pallet contracts. We have chosen to use the ethereum style AccountId20 type for the entire Substrate runtime. Luckily pallet contracts is generic over the account id and handles this properly.

However, it seems that cargo contract assumes the chain will use AccountId32. For example, here is one place I see it https://github.com/paritytech/cargo-contract/blob/master/crates/cargo-contract/src/cmd/extrinsics/instantiate.rs#L332

Is it possible to generalize cargo contract to work with AccoutId20?

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

No branches or pull requests

1 participant