This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +0
-38
lines changed
Expand file tree Collapse file tree 3 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ pub fn process_deposit_governing_tokens(
4545 let realm_data = get_realm_data ( program_id, realm_info) ?;
4646 let governing_token_mint = get_spl_token_mint ( governing_token_holding_info) ?;
4747
48- realm_data. asset_governing_tokens_deposits_allowed ( & governing_token_mint) ?;
49-
5048 realm_data. assert_is_valid_governing_token_mint_and_holding (
5149 program_id,
5250 realm_info. key ,
Original file line number Diff line number Diff line change @@ -226,21 +226,6 @@ impl RealmV2 {
226226 Ok ( ( ) )
227227 }
228228
229- /// Asserts the given governing token can be deposited into the realm
230- pub fn asset_governing_tokens_deposits_allowed (
231- & self ,
232- governing_token_mint : & Pubkey ,
233- ) -> Result < ( ) , ProgramError > {
234- // If the deposit is for the community token and the realm uses community voter weight addin then panic
235- if self . config . use_community_voter_weight_addin
236- && self . community_mint == * governing_token_mint
237- {
238- return Err ( GovernanceError :: GoverningTokenDepositsNotAllowed . into ( ) ) ;
239- }
240-
241- Ok ( ( ) )
242- }
243-
244229 /// Assert the given create authority can create governance
245230 pub fn assert_create_authority_can_create_governance (
246231 & self ,
Original file line number Diff line number Diff line change @@ -254,27 +254,6 @@ async fn test_create_program_governance_with_voter_weight_addin() {
254254 ) ;
255255}
256256
257- #[ tokio:: test]
258- async fn test_realm_with_voter_weight_addin_with_deposits_not_allowed ( ) {
259- // Arrange
260- let mut governance_test = GovernanceProgramTest :: start_with_voter_weight_addin ( ) . await ;
261- let realm_cookie = governance_test. with_realm ( ) . await ;
262-
263- // Act
264-
265- let err = governance_test
266- . with_community_token_deposit ( & realm_cookie)
267- . await
268- . err ( )
269- . unwrap ( ) ;
270-
271- // Assert
272- assert_eq ! (
273- err,
274- GovernanceError :: GoverningTokenDepositsNotAllowed . into( )
275- ) ;
276- }
277-
278257#[ tokio:: test]
279258async fn test_create_governance_with_voter_weight_action_error ( ) {
280259 // Arrange
You can’t perform that action at this time.
0 commit comments