Bläddra i källkod

Fixed Bug on TAccountComp IsAccountForPublicSale or IsAccountForPrivateSale

PascalCoin 6 år sedan
förälder
incheckning
25fca63072
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/core/UAccounts.pas

+ 2 - 2
src/core/UAccounts.pas

@@ -1518,12 +1518,12 @@ end;
 
 class function TAccountComp.IsAccountForPrivateSale(const AAccountInfo: TAccountInfo): Boolean;
 begin
-  Result := (AAccountInfo.state in [as_ForSale]) AND (NOT IsNullAccountKey(AAccountInfo.accountKey));
+  Result := (AAccountInfo.state in [as_ForSale]) AND (NOT IsNullAccountKey(AAccountInfo.new_publicKey));
 end;
 
 class function TAccountComp.IsAccountForPublicSale(const AAccountInfo: TAccountInfo): Boolean;
 begin
-  Result := (AAccountInfo.state in [as_ForSale]) AND IsNullAccountKey(AAccountInfo.accountKey);
+  Result := (AAccountInfo.state in [as_ForSale]) AND IsNullAccountKey(AAccountInfo.new_publicKey);
 end;
 
 class function TAccountComp.IsAccountForSwap(const AAccountInfo: TAccountInfo): Boolean;