소스 검색

Fix compiler bug

Unknown bug caused by compiler when account has a name and trying to decode in EPASA
Pascal Coin 4 년 전
부모
커밋
cdd6c428ea
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/core/UEPasaDecoder.pas

+ 4 - 2
src/core/UEPasaDecoder.pas

@@ -28,7 +28,7 @@ uses
   SysUtils,
   TypInfo,
   {$IFNDEF FPC}System.Generics.Collections{$ELSE}Generics.Collections{$ENDIF},
-  UBlockChain, UNode, UBaseTypes,
+  UBlockChain, UNode, UBaseTypes, UPCDataTypes,
   UAccounts,
   UEncoding,
   UEPasa,
@@ -64,6 +64,7 @@ var
   LUnencryptedPayloadBytes, LPwd : TBytes;
   LDone : Boolean;
   i : Integer;
+  LAccount : TAccount;
 begin
   LUnencryptedPayloadBytes := Nil;
   AEPasa.Clear;
@@ -88,7 +89,8 @@ begin
       AEPasa.AccountName := '@';
     end else begin
       if Assigned(ANode) then begin
-        AEPasa.AccountName := ANode.GetMempoolAccount(AAccount).name.ToPrintable;
+        LAccount := ANode.GetMempoolAccount(AAccount);
+        AEPasa.AccountName := LAccount.name.ToPrintable;
       end;
       if AEPasa.AccountName='' then begin
         ADecodeEPasaResult := der_AccountNameNotFound; // Will continue processing