Skip to content

Commit

Permalink
chore: remove problematic fragment
Browse files Browse the repository at this point in the history
`persistgraphql` was deriving a query with this fragment in a different position to when the
client serialized it for network transmission, resulting in a failure when the allow list is
enabled. This is a low-impact workaround while we determine a permanent solution.
  • Loading branch information
rhyslbw committed Jul 27, 2021
1 parent efc2aa6 commit 80be1db
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
9 changes: 0 additions & 9 deletions source/features/assets/api/AssetDetails.graphql

This file was deleted.

9 changes: 7 additions & 2 deletions source/features/search/api/searchForPaymentAddress.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#import "../../assets/api/AssetDetails.graphql"

query searchForPaymentAddress(
$address: String!
Expand Down Expand Up @@ -28,7 +27,13 @@ query searchForPaymentAddress(
summary {
assetBalances {
asset {
...AssetDetails
assetName
decimals
description
fingerprint
name
policyId
ticker
}
quantity
}
Expand Down
26 changes: 21 additions & 5 deletions source/features/transactions/api/TransactionDetails.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#import "../../assets/api/AssetDetails.graphql"

fragment TransactionDetails on Transaction {
block {
epochNo
Expand All @@ -13,7 +11,13 @@ fragment TransactionDetails on Transaction {
includedAt,
mint {
asset {
...AssetDetails
assetName
decimals
description
fingerprint
name
policyId
ticker
}
quantity
}
Expand All @@ -24,7 +28,13 @@ fragment TransactionDetails on Transaction {
value
tokens {
asset {
...AssetDetails
assetName
decimals
description
fingerprint
name
policyId
ticker
}
quantity
}
Expand All @@ -39,7 +49,13 @@ fragment TransactionDetails on Transaction {
value
tokens {
asset {
...AssetDetails
assetName
decimals
description
fingerprint
name
policyId
ticker
}
quantity
}
Expand Down

0 comments on commit 80be1db

Please sign in to comment.