Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711324
D17063.id50644.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D17063.id50644.diff
View Options
diff --git a/cashtab/extension/public/manifest.json b/cashtab/extension/public/manifest.json
--- a/cashtab/extension/public/manifest.json
+++ b/cashtab/extension/public/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Cashtab",
"description": "A browser-integrated eCash wallet from Bitcoin ABC",
- "version": "3.52.0",
+ "version": "3.52.1",
"content_scripts": [
{
"matches": ["file://*/*", "http://*/*", "https://*/*"],
diff --git a/cashtab/package-lock.json b/cashtab/package-lock.json
--- a/cashtab/package-lock.json
+++ b/cashtab/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "cashtab",
- "version": "2.52.0",
+ "version": "2.52.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cashtab",
- "version": "2.52.0",
+ "version": "2.52.1",
"dependencies": {
"@bitgo/utxo-lib": "^11.0.0",
"@zxing/browser": "^0.1.4",
diff --git a/cashtab/package.json b/cashtab/package.json
--- a/cashtab/package.json
+++ b/cashtab/package.json
@@ -1,6 +1,6 @@
{
"name": "cashtab",
- "version": "2.52.0",
+ "version": "2.52.1",
"private": true,
"scripts": {
"start": "node scripts/start.js",
diff --git a/cashtab/src/components/Agora/index.js b/cashtab/src/components/Agora/index.js
--- a/cashtab/src/components/Agora/index.js
+++ b/cashtab/src/components/Agora/index.js
@@ -120,14 +120,14 @@
// 2. Get all offers listed from the active wallet
let activeOffersByPubKey;
- let offeredFungibleTokenIdsThisWallet = [];
+ let offeredFungibleTokenIdsThisWallet = new Set();
try {
activeOffersByPubKey = await agora.activeOffersByPubKey(
toHex(activePk),
);
// Just get the tokenIds as the Orderbook will load and prepare the offers by tokenId
for (const activeOffer of activeOffersByPubKey) {
- offeredFungibleTokenIdsThisWallet.push(
+ offeredFungibleTokenIdsThisWallet.add(
activeOffer.token.tokenId,
);
}
@@ -140,8 +140,9 @@
// This keeps the order fixed for every user
// TODO sort by trading volume
noBlacklistedOfferedFungibleTokenIds.sort();
- offeredFungibleTokenIdsThisWallet =
- offeredFungibleTokenIdsThisWallet.sort();
+ offeredFungibleTokenIdsThisWallet = Array.from(
+ offeredFungibleTokenIdsThisWallet,
+ ).sort();
setActiveOffersCashtab({
offeredFungibleTokenIds: noBlacklistedOfferedFungibleTokenIds,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 11:37 (16 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5573421
Default Alt Text
D17063.id50644.diff (2 KB)
Attached To
D17063: [Cashtab] Patch bug in manage agora offers
Event Timeline
Log In to Comment