Pass payment tx hash in deployment request #19
@ -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) {
|
||||
|
@ -1391,10 +1391,12 @@ export class Service {
|
||||
amountToBeReturned = totalAuctionPrice;
|
||||
}
|
||||
|
||||
await this.laconicRegistry.sendTokensToAccount(
|
||||
project.paymentAddress,
|
||||
amountToBeReturned.toString()
|
||||
);
|
||||
if (amountToBeReturned !== 0) {
|
||||
await this.laconicRegistry.sendTokensToAccount(
|
||||
project.paymentAddress,
|
||||
amountToBeReturned.toString()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
async getDeployers(): Promise<Deployer[]> {
|
||||
|
Loading…
Reference in New Issue
Block a user