From 8c2d037d105a36995fe183b743289aa1276ada14 Mon Sep 17 00:00:00 2001 From: mx819812523 Date: Thu, 19 Dec 2024 16:13:08 +0800 Subject: [PATCH] [app] remove rooch dex cap store --- apps/rooch_dex/sources/swap.move | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/rooch_dex/sources/swap.move b/apps/rooch_dex/sources/swap.move index e78cc0f8a5..b7a9fdce1a 100644 --- a/apps/rooch_dex/sources/swap.move +++ b/apps/rooch_dex/sources/swap.move @@ -92,16 +92,16 @@ module rooch_dex::swap { amount_y_out: u64 } - struct RoochDexCap has store, key {} + struct RoochDexCap has key {} fun init() { - object::transfer(object::new_named_object(RoochDexCap{}), sender()) + object::transfer_extend(object::new_named_object(RoochDexCap{}), sender()) } public entry fun create_admin(_admin: &mut Object, receiver: address){ let new_admin = object::new(RoochDexCap{}); - object::transfer(new_admin, receiver) + object::transfer_extend(new_admin, receiver) } public entry fun delete_admin(_admin: &mut Object, admin_id: ObjectID){