From 54b4730c8ef1c766b2137f28cff1142f5037c5dd Mon Sep 17 00:00:00 2001 From: Evgeny Ukhanov Date: Thu, 16 Mar 2023 12:06:49 +0100 Subject: [PATCH] Register owner_id account --- eth-connector/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth-connector/src/lib.rs b/eth-connector/src/lib.rs index 4e5be38..eb9261b 100644 --- a/eth-connector/src/lib.rs +++ b/eth-connector/src/lib.rs @@ -178,9 +178,8 @@ impl EthConnectorContract { paused_mask, eth_custodian_address: Address::decode(ð_custodian_address).unwrap(), account_with_access_right, - owner_id, + owner_id: owner_id.clone(), }; - let owner_id = env::current_account_id(); let mut this = Self { ft: FungibleToken::new(StorageKey::FungibleToken), connector: connector_data, @@ -189,6 +188,7 @@ impl EthConnectorContract { accounts_counter: 0, known_engine_accounts: vec![], }; + this.register_if_not_exists(&env::current_account_id()); this.register_if_not_exists(&owner_id); this }