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

Commit cbba9b3

Browse files
authored
Fix isInitialized when account is frozen (#362)
1 parent 510d341 commit cbba9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

token/js/client/token.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export class Token {
559559
accountInfo.delegatedAmount = u64.fromBuffer(accountInfo.delegatedAmount);
560560
}
561561

562-
accountInfo.isInitialized = accountInfo.state === 1;
562+
accountInfo.isInitialized = accountInfo.state !== 0;
563563
accountInfo.isFrozen = accountInfo.state === 2;
564564

565565
if (accountInfo.isNativeOption === 1) {

0 commit comments

Comments
 (0)