From 2f7dc7611310cdd227c5e2198a345d5ad78b4e11 Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli Date: Thu, 8 Aug 2024 11:24:52 +0200 Subject: [PATCH] minors --- shielding_reward_party/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shielding_reward_party/src/lib.rs b/shielding_reward_party/src/lib.rs index f27a870..bd38ef9 100644 --- a/shielding_reward_party/src/lib.rs +++ b/shielding_reward_party/src/lib.rs @@ -10,13 +10,13 @@ pub const KD_GAIN: &str = "120000"; #[transaction] fn apply_tx(ctx: &mut Ctx, _tx_data: BatchedTx) -> TxResult { + let nam_address = ctx.get_native_token()?; + // Enable NAM transfers let native_token_transferable_key = parameters_storage::get_native_token_transferable_key(); ctx.write(&native_token_transferable_key, true)?; // Enable NAM MASP rewards - let nam_address = ctx.get_native_token()?; - let shielded_token_last_inflation_key = token::storage_key::masp_last_inflation_key(&nam_address); let shielded_token_last_locked_amount_key =