pink: Use customized ink address as contract id#610
Merged
kvinwang merged 7 commits intoinstantiate-nativefrom Dec 30, 2021
Merged
pink: Use customized ink address as contract id#610kvinwang merged 7 commits intoinstantiate-nativefrom
kvinwang merged 7 commits intoinstantiate-nativefrom
Conversation
a9c61c5 to
e32e89e
Compare
Collaborator
Author
|
There some unresolved compilation errors: |
1f598b2 to
58cfa7d
Compare
e32e89e to
7d92ef0
Compare
Contributor
|
Oh, I know this one. There's an upstream bug fix to a security problem. As a part of the fix, default value (0x0) for AccountId was disabled. So here we need to either remove the default derivation or manually assign the zero value to the account field. The later case is suboptimal because we may accidentally trigger the security problem. Side note: if the zero account is used as the public key, anyone can make a zero signature that can bypass some ill crypto implementation |
Contributor
|
The other problems are mostly additional generic config items by the pallets. Usually we can follow the upstream usage to give it some config. You can take a look at Substrate bin/runtime and Polkadot's runtime code |
7d92ef0 to
1c844ab
Compare
58cfa7d to
998d1a9
Compare
1c844ab to
2e3f0ef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Waiting for this upstream PR.