Pass payment tx hash in deployment request #19
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user