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 8 additions and 2 deletions
Showing only changes of commit 781b667319 - Show all commits

View File

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

View File

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