From 103d50c2a7dd38e0b168b3436ec93c3ae3167061 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Tue, 13 Jun 2023 13:17:05 +0200 Subject: [PATCH] Add example with single element tuple --- frame/contracts/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frame/contracts/src/lib.rs b/frame/contracts/src/lib.rs index 3df33ada47ea3..9a798c1a824dd 100644 --- a/frame/contracts/src/lib.rs +++ b/frame/contracts/src/lib.rs @@ -329,6 +329,13 @@ pub mod pallet { /// # struct Runtime {}; /// type Migrations = (v9::Migration, v10::Migration, v11::Migration); /// ``` + /// + /// If you have a single migration step, you can use a tuple with a single element: + /// ``` + /// use pallet_contracts::migration::v9; + /// # struct Runtime {}; + /// type Migrations = (v9::Migration,); + /// ``` type Migrations: MigrateSequence; }