Skip to content

Commit

Permalink
Hot fixes for thea deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed Feb 2, 2024
1 parent d6243d9 commit 1e8801f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pallets/thea-message-handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub mod pallet {
#[transactional]
pub fn send_thea_message(origin: OriginFor<T>, data: Vec<u8>) -> DispatchResult {
ensure_root(origin)?;
Self::execute_withdrawals(0, data)?;
Self::execute_withdrawals(1, data)?;
Ok(())
}
}
Expand Down
4 changes: 2 additions & 2 deletions pallets/thea/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ pub mod pallet {
// Every block check the next incoming nonce and if fork period is over, execute them
let active_networks = <ActiveNetworks<T>>::get();
for network in active_networks.clone() {
let next_nonce = <IncomingNonce<T>>::get(network);
match <IncomingMessagesQueue<T>>::get(network, next_nonce) {
let last_processed_nonce = <IncomingNonce<T>>::get(network);
match <IncomingMessagesQueue<T>>::take(network, last_processed_nonce.saturating_add(1)) {
None => continue,
Some(msg) => {
if msg.execute_at <= blk.saturated_into::<u32>() {
Expand Down
2 changes: 1 addition & 1 deletion runtimes/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 326,
spec_version: 327,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down

0 comments on commit 1e8801f

Please sign in to comment.