Browse Source

Initialize close_authority explicitly (#2919)

Tyera Eulberg 3 years ago
parent
commit
9f882ab2fb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      program/src/processor.rs

+ 1 - 0
program/src/processor.rs

@@ -117,6 +117,7 @@ impl Processor {
 
         account.mint = *mint_info.key;
         account.owner = *owner;
+        account.close_authority = COption::None;
         account.delegate = COption::None;
         account.delegated_amount = 0;
         account.state = AccountState::Initialized;