Skip to content

Commit

Permalink
Fix isInitialized when account is frozen (solana-labs#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Aug 29, 2020
1 parent 510d341 commit cbba9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/js/client/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export class Token {
accountInfo.delegatedAmount = u64.fromBuffer(accountInfo.delegatedAmount);
}

accountInfo.isInitialized = accountInfo.state === 1;
accountInfo.isInitialized = accountInfo.state !== 0;
accountInfo.isFrozen = accountInfo.state === 2;

if (accountInfo.isNativeOption === 1) {
Expand Down

0 comments on commit cbba9b3

Please sign in to comment.