Added support for PAYMENT-type AT transactions in serialization tests

This commit is contained in:
CalDescent 2022-04-22 20:06:37 +01:00
parent 54ff564bb1
commit b5522ea260
2 changed files with 2 additions and 4 deletions

View File

@ -47,7 +47,6 @@ public class SerializationTests extends Common {
switch (txType) { switch (txType) {
case GENESIS: case GENESIS:
case ACCOUNT_FLAGS: case ACCOUNT_FLAGS:
case AT:
case CHAT: case CHAT:
case PUBLICIZE: case PUBLICIZE:
case AIRDROP: case AIRDROP:

View File

@ -18,10 +18,9 @@ public class AtTestTransaction extends TestTransaction {
String recipient = account.getAddress(); String recipient = account.getAddress();
long amount = 123L * Amounts.MULTIPLIER; long amount = 123L * Amounts.MULTIPLIER;
final long assetId = Asset.QORT; final long assetId = Asset.QORT;
byte[] message = new byte[32];
random.nextBytes(message);
return new ATTransactionData(generateBase(account), atAddress, recipient, amount, assetId, message); // Use PAYMENT-type - i.e. a null message
return new ATTransactionData(generateBase(account), atAddress, recipient, amount, assetId, null);
} }
} }