Skip to content
Snippets Groups Projects
  1. Oct 14, 2021
  2. Oct 13, 2021
  3. Oct 12, 2021
  4. Oct 11, 2021
  5. Oct 09, 2021
  6. Oct 08, 2021
  7. Oct 07, 2021
    • Eric Miller's avatar
      Support extra constant renaming (#9814) · b564f4f0
      Eric Miller authored
      
      * Rebased with master. Resolved merge conflict in
      frame/support/test/tests/pallet.rs
      
      * Switching Account ID to SomeType1, as SomeType3 was giving me conversion error.
      
      * Wrong indent config.  Fixed.
      
      * These tabs look fine locally, but look different on Github.  Trying to get the style config right.
      
      * Parsing pallet::constant_name.
      Passing unit tests, which is confusing because I didn't change `ident` in the ExtraConstantDef initialization.
      
      * Finalized parsing of extra constant name by adding optional metadata field.
      Added expansion logic that replaces respective `idents` where they exist.
      
      * Erasing this to try to keep the format the same across the source code.
      
      * Another formatting change for consistency.
      
      * Update frame/support/procedural/src/pallet/expand/constants.rs
      
      strictly more idiomatic.
      
      Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
      
      * Update frame/support/procedural/src/pallet/parse/extra_constants.rs
      
      strictly idiomatic change.
      
      Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
      
      * Fixing formatting and CI warnings.
      
      * switched to nightly compiler to use rustfmt.toml
      
      Co-authored-by: default avatarEric Miller <emiller@lirio.co>
      Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
      b564f4f0
    • thiolliere's avatar
      Root origin always bypass all filter, other origin cannot bypass... · e81a4252
      thiolliere authored
      Root origin always bypass all filter, other origin cannot bypass BaseCallFilter even when constructed from Root origin (#9948)
      
      * improve root filter bypass
      
      * improve doc
      
      * fmt
      
      * refactor test for more understandable flow
      
      * Update frame/support/procedural/src/construct_runtime/expand/origin.rs
      
      Co-authored-by: default avatarKeith Yeung <kungfukeith11@gmail.com>
      
      * match
      
      Co-authored-by: default avatarKeith Yeung <kungfukeith11@gmail.com>
      e81a4252