diff --git a/README.md b/README.md index a5e2354..899bf84 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Contracts in this repository are designed so that they may be used together _or_ - Proposals can be canceled at any time by _anyone_ iff the voting weight of the proposer falls below the proposal creation threshold, up until it is executed - The proposer may also cancel the proposal at any time before the end of the voting period - Proposers may only have one active proposal at any time -- The contract can be reconfigured or upgraded via calls to self +- The contract can be upgraded via calls to self ## Testing diff --git a/src/governor.cairo b/src/governor.cairo index 27bd58a..2119201 100644 --- a/src/governor.cairo +++ b/src/governor.cairo @@ -62,7 +62,7 @@ pub trait IGovernor { // Attaches the given text to the proposal. Simply emits an event containing the proposal description. fn describe(ref self: TContractState, id: felt252, description: ByteArray); - // Get the configuration for this governor contract. + // Get the staker that is used by this governor contract. fn get_staker(self: @TContractState) -> IStakerDispatcher; // Get the configuration for this governor contract. @@ -71,9 +71,6 @@ pub trait IGovernor { // Get the proposal info for the given proposal id. fn get_proposal(self: @TContractState, id: felt252) -> ProposalInfo; - // Configure the delay and the window for call execution. This must be self-called via #queue. - fn configure(ref self: TContractState, config: Config); - // Replace the code at this address. This must be self-called via #queue. fn upgrade(ref self: TContractState, class_hash: ClassHash); } @@ -403,13 +400,6 @@ pub mod Governor { self.proposals.read(id) } - - fn configure(ref self: ContractState, config: Config) { - self.check_self_call(); - - self.config.write(config); - } - fn upgrade(ref self: ContractState, class_hash: ClassHash) { self.check_self_call();