Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 172e24e

Browse files
author
Tyera Eulberg
authored
Initialize close_authority explicitly (#2919)
1 parent b5f3dfe commit 172e24e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

token/program-2022/src/processor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ impl Processor {
163163

164164
account.base.mint = *mint_info.key;
165165
account.base.owner = *owner;
166+
account.base.close_authority = COption::None;
166167
account.base.delegate = COption::None;
167168
account.base.delegated_amount = 0;
168169
account.base.state = starting_state;

token/program/src/processor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ impl Processor {
117117

118118
account.mint = *mint_info.key;
119119
account.owner = *owner;
120+
account.close_authority = COption::None;
120121
account.delegate = COption::None;
121122
account.delegated_amount = 0;
122123
account.state = AccountState::Initialized;

0 commit comments

Comments
 (0)