Commit bce6e2e8 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(refactor): Payments

1 merge request!387WIP: Boost Campaigns (&24)
Pipeline #69643554 passed with stages
in 31 minutes and 10 seconds
......@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import { Web3WalletService } from '../../blockchain/web3-wallet.service';
import { OverlayModalService } from '../../../services/ux/overlay-modal';
import { GetMetamaskComponent } from '../../blockchain/metamask/getmetamask.component';
import { Campaign, CampaignBudgetType, CampaignPayment } from './campaigns.type';
import { Campaign, CampaignPayment } from './campaigns.type';
import { TokenContractService } from '../../blockchain/contracts/token-contract.service';
@Injectable()
......@@ -61,6 +61,7 @@ export class CampaignPaymentsService {
return {
address: await this.web3Wallet.getCurrentWallet(true) as string,
txHash: await this.tokenContract.transfer(this.campaignWallet, amount),
amount,
};
}
}
......@@ -38,4 +38,5 @@ export type Campaign = {
export type CampaignPayment = {
address: string,
txHash: string,
amount: number,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment