From e6f56ffe4d86055fa7ca94a714348b649b0f8346 Mon Sep 17 00:00:00 2001 From: "matej.vukosav" Date: Tue, 19 Nov 2024 18:56:51 +0800 Subject: [PATCH] refactor: remove hardcoded account id --- logic/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/src/lib.rs b/logic/src/lib.rs index 2d6fcba..758afaf 100644 --- a/logic/src/lib.rs +++ b/logic/src/lib.rs @@ -68,7 +68,7 @@ impl AppState { pub fn create_new_proposal(receiver: String) -> Result { env::log("env Call in wasm create new proposal"); - let account_id = env::ext::AccountId("vuki.testnet".to_string()); + let account_id = env::ext::AccountId(receiver); let amount = 1_000_000_000_000_000_000_000; let proposal_id = Self::external() .propose()