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

pallet-contracts: Fix 16bit func_id #11985

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

kvinwang
Copy link
Contributor

@kvinwang kvinwang commented Aug 5, 2022

It should mask the least 16bit as the doc comment said.

@kvinwang kvinwang requested a review from athei as a code owner August 5, 2022 15:13
@kvinwang kvinwang changed the title Fix 16bit func_id pallet-contracts: Fix 16bit func_id Aug 5, 2022
@athei athei added A0-please_review Pull request needs code review. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit. labels Aug 7, 2022
@athei
Copy link
Member

athei commented Aug 7, 2022

Can you modify one of the tests so that both bytes are used for the function ids?

@kvinwang
Copy link
Contributor Author

kvinwang commented Aug 7, 2022

Can you modify one of the tests so that both bytes are used for the function ids?

Done

Copy link
Member

@athei athei left a comment

Choose a reason for hiding this comment

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

Thanks. You need to run cargo +nightly fmt.

@athei
Copy link
Member

athei commented Aug 8, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 4ad36db into paritytech:master Aug 8, 2022
@kvinwang kvinwang deleted the fix-func-id branch August 8, 2022 09:50
DaviRain-Su pushed a commit to octopus-network/substrate that referenced this pull request Aug 23, 2022
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants