forked from Qortal/qortal
Added support for PAYMENT-type AT transactions in serialization tests
This commit is contained in:
parent
54ff564bb1
commit
b5522ea260
@ -47,7 +47,6 @@ public class SerializationTests extends Common {
|
||||
switch (txType) {
|
||||
case GENESIS:
|
||||
case ACCOUNT_FLAGS:
|
||||
case AT:
|
||||
case CHAT:
|
||||
case PUBLICIZE:
|
||||
case AIRDROP:
|
||||
|
@ -18,10 +18,9 @@ public class AtTestTransaction extends TestTransaction {
|
||||
String recipient = account.getAddress();
|
||||
long amount = 123L * Amounts.MULTIPLIER;
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user