Skip to content

Commit

Permalink
Update test-ci.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdukakis authored Feb 21, 2024
1 parent b807b12 commit 92bd43b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test-ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,22 @@ const test = async function ({ pingPongAmount }) {
process.exit(0);
} else { // retry tx
try {
const privateKey = transaction.sourceId === Alice.id ? privateKeys.Alice : privateKeys.Bob;
const source = transaction.sourceId === Alice.id ? Alice : Bob;
const privateKey = transfer.sourceId === Alice.id ? privateKeys.Alice : privateKeys.Bob;
const source = transfer.sourceId === Alice.id ? Alice : Bob;

transaction = await source.createTransaction(
privateKey,
{
destinationId: transaction.destinationId,
amount: transaction.amount,
destinationId: transfer.destinationId,
amount: transfer.amount,
tick: await source.executionTick(),
}
);
source.broadcastTransaction();

console.log('Tx:', transaction.digest, transaction.tick);
console.log('Tx :', transaction.tick, transaction.sourceId + '->' + transaction.destinationId, transaction.digest);
} catch (error) {
console.log('Error:', error.message);
console.log(error.message);
}
}
});
Expand All @@ -131,7 +131,7 @@ const test = async function ({ pingPongAmount }) {
const source = entity.id === Alice.id ? Alice : Bob;

try {
const transaction = await source.createTransaction(
transaction = await source.createTransaction(
privateKey,
{
destinationId: source.id === Alice.id ? Bob.id : Alice.id,
Expand All @@ -141,9 +141,9 @@ const test = async function ({ pingPongAmount }) {
);
source.broadcastTransaction(); // broadcasts the latest non-processed transaction

console.log('Tx:', transaction.digest, transaction.tick);
console.log('Tx :', transaction.tick, transaction.sourceId + '->' + transaction.destinationId, transaction.digest);
} catch (error) {
console.log('Error:', error.message);
console.log(error.message);
}
}
}
Expand Down

0 comments on commit 92bd43b

Please sign in to comment.