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

calc next network contract fails #1677

Closed
ermalkaleci opened this issue Dec 6, 2021 · 1 comment · Fixed by #1686
Closed

calc next network contract fails #1677

ermalkaleci opened this issue Dec 6, 2021 · 1 comment · Fixed by #1686
Assignees

Comments

@ermalkaleci
Copy link
Contributor

Address generated here

let address = MIRRORED_TOKENS_ADDRESS_START | EvmAddress::from_low_u64_be(Self::network_contract_index());

will change when it calls handle_mirrored_token returning PREDEPLOY_ADDRESS_START and causing CreateCollision

This condition is true because byte at index 9 element is 1

is_system_contract(address) && CurrencyIdType::try_from(address.as_bytes()[H160_POSITION_CURRENCY_ID_TYPE]).is_ok()

@zjb0807
Copy link
Member

zjb0807 commented Dec 8, 2021

The NFT precompile doesn't implement. It can't be called here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants