Check names in deployer lrn

This commit is contained in:
IshaVenikar 2024-10-29 13:58:22 +05:30
parent 6e1464d4da
commit 781b667319
2 changed files with 8 additions and 2 deletions

View File

@ -324,7 +324,11 @@ export class Registry {
paymentAddress: auctionWinner,
});
for (const record of records) {
const newRecords = records.filter(record => {
record.names !== null
})
for (const record of newRecords) {
if (record.id) {
deployerRecords.push(record);
break;

View File

@ -911,9 +911,11 @@ export class Service {
}
if (deployer.minimumPayment && project.txHash) {
const amountToBePaid = deployer?.minimumPayment.replace(/\D/g, '').toString();
const txResponse = await this.laconicRegistry.sendTokensToAccount(
deployer?.paymentAddress!,
deployer?.minimumPayment
amountToBePaid
);
const txHash = txResponse.transactionHash;