From 5b7d0ab55e0c8f9eb34f48d772d7b0d424f94672 Mon Sep 17 00:00:00 2001 From: Rebegea Dragos-Alexandru <42241923+dragos-rebegea@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:25:24 +0200 Subject: [PATCH 1/2] feesCollectorAddress setter --- energy-integration/governance-v2/src/views.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/energy-integration/governance-v2/src/views.rs b/energy-integration/governance-v2/src/views.rs index 84b53c537..1f428c031 100644 --- a/energy-integration/governance-v2/src/views.rs +++ b/energy-integration/governance-v2/src/views.rs @@ -94,6 +94,12 @@ pub trait ViewsModule: self.is_valid_proposal_id(proposal_id) && !self.proposals().item_is_empty(proposal_id) } + #[only_owner] + #[endpoint(changeFeesCollectorAddress)] + fn change_voting_period_in_blocks(&self, new_value: ManagedAddress) { + self.fees_collector_address().set(new_value); + } + #[proxy] fn fees_collector_proxy(&self, sc_address: ManagedAddress) -> fees_collector::Proxy; From 3cf293b1cb453f74486ae9699f480c9062353822 Mon Sep 17 00:00:00 2001 From: Rebegea Dragos-Alexandru <42241923+dragos-rebegea@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:27:16 +0200 Subject: [PATCH 2/2] fix function name --- energy-integration/governance-v2/src/views.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/energy-integration/governance-v2/src/views.rs b/energy-integration/governance-v2/src/views.rs index 1f428c031..ec748edd9 100644 --- a/energy-integration/governance-v2/src/views.rs +++ b/energy-integration/governance-v2/src/views.rs @@ -96,7 +96,7 @@ pub trait ViewsModule: #[only_owner] #[endpoint(changeFeesCollectorAddress)] - fn change_voting_period_in_blocks(&self, new_value: ManagedAddress) { + fn change_fees_collector_address(&self, new_value: ManagedAddress) { self.fees_collector_address().set(new_value); }