Pass payment tx hash in deployment request #19

Merged
nabarun merged 10 commits from iv-update-request into main 2024-10-29 09:12:40 +00:00
2 changed files with 9 additions and 5 deletions
Showing only changes of commit 5b7f638caf - Show all commits

View File

@ -324,7 +324,9 @@ export class Registry {
paymentAddress: auctionWinner,
});
const newRecords = records.filter(record => record.names !== null);
const newRecords = records.filter(record => {
return record.names !== null && record.names.length > 0;
});
for (const record of newRecords) {
if (record.id) {

View File

@ -1391,11 +1391,13 @@ export class Service {
amountToBeReturned = totalAuctionPrice;
}
if (amountToBeReturned !== 0) {
await this.laconicRegistry.sendTokensToAccount(
project.paymentAddress,
amountToBeReturned.toString()
);
}
}
async getDeployers(): Promise<Deployer[]> {
const dbDeployers = await this.db.getDeployers();