- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.7k
 
          add VersionedRuntimeUpgrade to kitchensink runtime
          #14785
        
      base: master
Are you sure you want to change the base?
  
    add VersionedRuntimeUpgrade to kitchensink runtime
  
  #14785
              Conversation
        
          
                bin/node/runtime/src/lib.rs
              
                Outdated
          
        
      | #![cfg(all(feature = "experimental", feature = "try-runtime"))] | ||
| 
               | 
          
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #![cfg(all(feature = "experimental", feature = "try-runtime"))] | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remove that line I get:
Compiling kitchensink-runtime v3.0.0-dev (/home/bruno/src/substrate/bin/node/runtime)
error: failed to run custom build command for `kitchensink-runtime v3.0.0-dev (/home/bruno/src/substrate/bin/node/runtime)`
Caused by:
  process didn't exit successfully: `/home/bruno/src/substrate/target/debug/build/kitchensink-runtime-b16098d4b7703ca7/build-script-build` (exit status: 1)
  --- stdout
  Information that should be included in a bug report.
  Executing build command: RUSTFLAGS="-C target-cpu=mvp -C target-feature=-sign-ext -C link-arg=--export-table -Clink-arg=--export=__heap_base -C link-arg=--import-memory  " SKIP_WASM_BUILD="" "/home/bruno/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/bruno/src/substrate/target/debug/wbuild/kitchensink-runtime/Cargo.toml" "--color=always" "--profile" "release"
  Using rustc version: rustc 1.70.0 (90c541806 2023-05-31)
| 
           The CI pipeline was cancelled due to failure one of the required jobs.  | 
    
| 
           With the current code, I am getting the following: I am getting caught up with the generics here.  | 
    
        
          
                bin/node/runtime/src/lib.rs
              
                Outdated
          
        
      | pallet_nomination_pools::migration::v2::MigrateToV2<Runtime>, | ||
| pallet_alliance::migration::Migration<Runtime>, | ||
| pallet_contracts::Migration<Runtime>, | ||
| VersionCheckedMigrateV1ToV2<T, ()>, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The generic <T> is not found in this scope.
| 
           Oops, that looks like a mistake in the docs. Try replacing   | 
    
          
 Worked! I will test the migration now. Thanks!!  | 
    
| 
           Getting  Any idea what I could be doing wrong? Also, tried using the standalone CLI:  | 
    
| 
           Try installing with  
  | 
    
No description provided.