Browse Source

add "is_pay_to_key" to EPASA Object

PascalCoin 4 năm trước cách đây
mục cha
commit
7629f37dd4
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 1 0
      CHANGELOG.md
  2. 1 0
      src/core/UEPasaDecoder.pas

+ 1 - 0
CHANGELOG.md

@@ -38,6 +38,7 @@
     - "account_epasa_classic" : (String) Encoded EPASA without extended checksum
     - "payload" : HEXASTRING with the payload data
     - "payload_type" : Byte
+    - "is_pay_to_key" : (Boolean) True if EPasa is a Pay To Key format like @[Base58Pubkey]
   - Payload encoding will automatically set "payload_type" value based on encoding params in order to store E-PASA standard
   - Updated "findaccounts": 
     -New param "end" (integer, -1 for default): Will search from "start" to "end" (if "end"=-1 will search to the end)

+ 1 - 0
src/core/UEPasaDecoder.pas

@@ -213,6 +213,7 @@ begin
 
     AJSONResponse.GetAsVariant('payload').Value := LEPasa.GetRawPayloadBytes.ToHexaString;
     AJSONResponse.GetAsVariant('payload_type').Value := LEPasa.PayloadType.ToProtocolValue;
+    AJSONResponse.GetAsVariant('is_pay_to_key').Value := LEPasa.IsPayToKey;
   end;
 end;