@cardano-sdk/cardano-graphql-db-sync
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "@cardano-sdk/cardano-graphql-db-sync", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Cardano Graphql (cardano-db-sync) integration", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -1,2 +0,2 @@ | ||
import { CardanoProvider } from '@cardano-sdk/core'; | ||
import { CardanoProvider, ProviderError, ProviderFailure } from '@cardano-sdk/core'; | ||
import { gql, GraphQLClient } from 'graphql-request'; | ||
@@ -227,5 +227,7 @@ import { TransactionSubmitResponse } from '@cardano-graphql/client-ts'; | ||
return !!response.hash; | ||
} catch { | ||
return false; | ||
if (!response.hash) { | ||
throw new Error('No "hash" in graphql response'); | ||
} | ||
} catch (error) { | ||
throw new ProviderError(ProviderFailure.Unknown, error); | ||
} | ||
@@ -232,0 +234,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22960
11
722