Skip to content

Commit

Permalink
filtering out change recipients, version app bump
Browse files Browse the repository at this point in the history
  • Loading branch information
piggydoughnut committed Nov 23, 2021
1 parent 643ef33 commit 024f086
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/electron/package.json
@@ -1,7 +1,7 @@
{
"name": "tokel_app",
"productName": "tokelPlatform",
"version": "1.1.2",
"version": "1.1.3",
"description": "Komodo ecosystem’s Token Platform",
"main": "./main.js",
"author": {
Expand All @@ -14,7 +14,7 @@
},
"license": "MIT",
"dependencies": {
"@tokel/nspv-js": "0.0.5",
"@tokel/nspv-js": "0.0.6",
"axios": "0.21.4",
"ipfs-core": "0.11.1",
"satoshi-bitcoin": "1.0.5"
Expand Down
8 changes: 4 additions & 4 deletions src/electron/yarn.lock
Expand Up @@ -256,10 +256,10 @@
resolved "https://registry.yarnpkg.com/@tokel/cryptoconditions-js/-/cryptoconditions-js-0.1.1.tgz#11194188fe149b7f5df1c3d24ebb5d0c632883c3"
integrity sha512-4KhCDfezYB81bsGbg6CNPHWOP07MpJCms6qIA5jCkEcq1nGQYB6ogVQwtVbM8frEaZCv0fymb1gMY1LHQSg3gw==

"@tokel/nspv-js@0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@tokel/nspv-js/-/nspv-js-0.0.5.tgz#7dad8ba7301549ea15ec9d24d905dc1c7694c4e2"
integrity sha512-+6celV1dJI03t0WYUyT38QPij0NHcI613VJsddtC3BQyB+qz4IXAuAXU68zSG36S6qCg0Y38zdtPzpqpXs/NAA==
"@tokel/nspv-js@0.0.6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@tokel/nspv-js/-/nspv-js-0.0.6.tgz#6b812395bed98a00c2a4f2b7c2e7c3ac0b2c2608"
integrity sha512-rP+0OjucqDb88nuxKJkpSLefMJVCA757AwXGPOYusNgihUtZBj2QYIkNRGTispCXvMULm2vfYx6pF9MT2K6U6g==
dependencies:
"@tokel/cryptoconditions-js" "0.1.1"
bech32 "0.0.3"
Expand Down
5 changes: 4 additions & 1 deletion src/util/transactions.ts
Expand Up @@ -6,10 +6,13 @@ import { getUnixTimestamp } from './helpers';

export const parseBlockchainTransaction = (tx, address: string) => {
const iAmSender = tx.senders.find(s => s === address);
if (iAmSender) {
tx.recipients = tx.recipients.filter(addr => addr !== address);
}
return {
value: tx.value,
from: tx.senders,
recipient: tx.recipients,
recipient: tx.recipients.length > 0 ? tx.recipients : address,
timestamp: tx.time,
txid: tx.txid,
height: tx.blockheight,
Expand Down

0 comments on commit 024f086

Please sign in to comment.