mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Include memo for outgoing ARRR transactions.
This commit is contained in:
@@ -319,7 +319,16 @@ public class PirateChain extends Bitcoiny {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: JSONArray outgoingMetadatas = transactionJson.getJSONArray("outgoing_metadata");
|
||||
if (transactionJson.has("outgoing_metadata")) {
|
||||
JSONArray outgoingMetadatas = transactionJson.getJSONArray("outgoing_metadata");
|
||||
for (int j = 0; j < outgoingMetadatas.length(); j++) {
|
||||
JSONObject outgoingMetadata = outgoingMetadatas.getJSONObject(j);
|
||||
|
||||
if (outgoingMetadata.has("memo") && !outgoingMetadata.isNull("memo")) {
|
||||
memo = outgoingMetadata.getString("memo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
long timestampMillis = Math.toIntExact(timestamp) * 1000L;
|
||||
SimpleTransaction transaction = new SimpleTransaction(txId, timestampMillis, amount, fee, null, null, memo);
|
||||
|
Reference in New Issue
Block a user