Skip to content

Commit

Permalink
refactor: remove hardcoded account id
Browse files Browse the repository at this point in the history
refactor: remove hardcoded account id
  • Loading branch information
MatejVukosav authored Nov 19, 2024
2 parents 9f0b30d + e6f56ff commit 3944da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl AppState {

pub fn create_new_proposal(receiver: String) -> Result<env::ext::ProposalId, Error> {
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()
Expand Down

0 comments on commit 3944da8

Please sign in to comment.