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

Different contract address length #7

Closed
nghuyenthevinh2000 opened this issue May 16, 2023 · 2 comments
Closed

Different contract address length #7

nghuyenthevinh2000 opened this issue May 16, 2023 · 2 comments

Comments

@nghuyenthevinh2000
Copy link

nghuyenthevinh2000 commented May 16, 2023

  1. Old wasm has contract address length of 20 (https://github.com/classic-terra/core/blob/main/x/wasm/types/contract.go#L74)
  2. New wasm has contract address length of 32 (https://github.com/classic-terra/wasmd/blob/v0.30.0-terra/x/wasm/keeper/addresses.go#L35)

Different contract address leads to different handling of iterator key (with address as key) between old and new: https://github.com/classic-terra/wasmd/blob/v0.30.0-terra/x/wasm/keeper/keeper.go#L810

@nghuyenthevinh2000
Copy link
Author

CosmWasm#758

@nghuyenthevinh2000
Copy link
Author

CosmWasm#772 will allow mixed contract addr len

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