From 9e1884be284f7c5a950681d67dbcde41ef2d7d76 Mon Sep 17 00:00:00 2001 From: Thanos <56822898+thadouk@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:09:45 +0000 Subject: [PATCH] Add indices for calls of ethereum-transactions See: https://github.com/paritytech/substrate/pull/12891 https://github.com/paritytech/substrate/pull/11381 --- pallets/ethereum-transactions/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pallets/ethereum-transactions/src/lib.rs b/pallets/ethereum-transactions/src/lib.rs index 095d9c067..76575e525 100644 --- a/pallets/ethereum-transactions/src/lib.rs +++ b/pallets/ethereum-transactions/src/lib.rs @@ -221,6 +221,7 @@ pub mod pallet { // finalized, and possible in a state where our governance is centralized. // Suggestion: We can wrap it in a build configuration flag for conditional compilation, eg // "allow-sudo-shortcuts" + #[pallet::call_index(0)] #[pallet::weight(::WeightInfo::set_transaction_id())] pub fn set_transaction_id( origin: OriginFor, @@ -231,6 +232,7 @@ pub mod pallet { Ok(()) } + #[pallet::call_index(1)] #[pallet::weight(::WeightInfo::set_eth_tx_hash_for_dispatched_tx(MAX_VALIDATORS, MAX_TXS_PER_ACCOUNT))] pub fn set_eth_tx_hash_for_dispatched_tx( origin: OriginFor, @@ -273,6 +275,7 @@ pub mod pallet { // See SYS-870 & SYS-855 for more information /// Removes a reservation for a transaction that was created with reserve_transaction_id /// Only sudo should call this to repair a network. + #[pallet::call_index(2)] #[pallet::weight(::WeightInfo::unreserve_transaction())] pub fn unreserve_transaction( origin: OriginFor, @@ -291,6 +294,7 @@ pub mod pallet { } /// Sets the address for ethereum contracts + #[pallet::call_index(3)] #[pallet::weight(::WeightInfo::set_publish_root_contract())] pub fn set_publish_root_contract( origin: OriginFor,