Chrome Webstore Link

This commit is contained in:
Florian Dold 2015-12-29 10:46:50 +01:00
parent edf5d2cc62
commit 7348b0ca41
3 changed files with 55 additions and 60 deletions

View File

@ -201,13 +201,6 @@ function executePay(db, offer, payCoinInfo, merchantBaseUrl, chosenMint) {
});
}
function confirmPay(db, detail, sendResponse) {
console.log("confirmPay", JSON.stringify(detail));
let tx = db.transaction(['transactions'], 'readwrite');
let trans = {
contractHash: detail.offer.H_contract,
contract: detail.offer.contract,
sig: detail.offer
};
let offer = detail.offer;
getPossibleMintCoins(db, offer.contract.amount, offer.contract.max_fee, offer.contract.mints)
.then((mcs) => {

View File

@ -21,7 +21,7 @@
interface AmountJson {
value: number;
fraction: number;
fraction: number
currency: string;
}
@ -304,14 +304,6 @@ function executePay(db,
function confirmPay(db, detail: ConfirmPayRequest, sendResponse) {
console.log("confirmPay", JSON.stringify(detail));
let tx = db.transaction(['transactions'], 'readwrite');
let trans = {
contractHash: detail.offer.H_contract,
contract: detail.offer.contract,
sig: detail.offer
};
let offer: Offer = detail.offer;
getPossibleMintCoins(db,
offer.contract.amount,

View File

@ -6,6 +6,16 @@
<link rel="stylesheet" href="popup.css" type="text/css">
<script src="../lib/util.js" type="text/javascript"></script>
<script src="transactions.js" type="text/javascript"></script>
<script id="balance-template" type="text/x-handlebars-template">
{{#each transactions}}
bla
{{else}}
Looks like you didn't make any transactions. Get some
coins and <a>donate</a> something.
{{/each}}
</script>
</head>
<body>