@solana/transaction-confirmation
Advanced tools
Comparing version 2.0.0-experimental.c32f08b to 2.0.0-experimental.c9b2705
@@ -1,2 +0,2 @@ | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND } from '@solana/errors'; | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -143,5 +143,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -148,0 +146,0 @@ return; |
@@ -1,2 +0,2 @@ | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND } from '@solana/errors'; | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -143,5 +143,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -148,0 +146,0 @@ return; |
@@ -1,2 +0,2 @@ | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND } from '@solana/errors'; | ||
import { SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SolanaError, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, getSolanaErrorFromTransactionError } from '@solana/errors'; | ||
import { getBase58Decoder, getBase64Encoder } from '@solana/codecs-strings'; | ||
@@ -143,5 +143,3 @@ import { commitmentComparator } from '@solana/rpc-types'; | ||
if (signatureStatusNotification.value.err) { | ||
throw new Error(`The transaction with signature \`${signature}\` failed.`, { | ||
cause: signatureStatusNotification.value.err | ||
}); | ||
throw getSolanaErrorFromTransactionError(signatureStatusNotification.value.err); | ||
} else { | ||
@@ -148,0 +146,0 @@ return; |
{ | ||
"name": "@solana/transaction-confirmation", | ||
"version": "2.0.0-experimental.c32f08b", | ||
"version": "2.0.0-experimental.c9b2705", | ||
"description": "Helpers for confirming Solana transactions", | ||
@@ -52,10 +52,10 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-experimental.c32f08b", | ||
"@solana/codecs-strings": "2.0.0-experimental.c32f08b", | ||
"@solana/errors": "2.0.0-experimental.c32f08b", | ||
"@solana/keys": "2.0.0-experimental.c32f08b", | ||
"@solana/rpc": "2.0.0-experimental.c32f08b", | ||
"@solana/rpc-types": "2.0.0-experimental.c32f08b", | ||
"@solana/rpc-subscriptions": "2.0.0-experimental.c32f08b", | ||
"@solana/transactions": "2.0.0-experimental.c32f08b" | ||
"@solana/addresses": "2.0.0-experimental.c9b2705", | ||
"@solana/codecs-strings": "2.0.0-experimental.c9b2705", | ||
"@solana/errors": "2.0.0-experimental.c9b2705", | ||
"@solana/keys": "2.0.0-experimental.c9b2705", | ||
"@solana/rpc": "2.0.0-experimental.c9b2705", | ||
"@solana/rpc-subscriptions": "2.0.0-experimental.c9b2705", | ||
"@solana/rpc-types": "2.0.0-experimental.c9b2705", | ||
"@solana/transactions": "2.0.0-experimental.c9b2705" | ||
}, | ||
@@ -62,0 +62,0 @@ "bundlewatch": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
204845
1716
+ Added@solana/addresses@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/assertions@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/codecs-data-structures@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/errors@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/functional@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/keys@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-api@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-parsed-types@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-subscriptions@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-subscriptions-api@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-transformers@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-transport-http@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.c9b2705(transitive)
+ Added@solana/transactions@2.0.0-experimental.c9b2705(transitive)
+ Addedcommander@12.1.0(transitive)
+ Addedundici@6.21.1(transitive)
- Removed@solana/addresses@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/assertions@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/codecs-data-structures@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/errors@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/functional@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/keys@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-api@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-parsed-types@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-spec@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-spec-types@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-subscriptions@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-subscriptions-api@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-subscriptions-spec@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-transformers@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-transport-http@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/rpc-types@2.0.0-experimental.c32f08b(transitive)
- Removed@solana/transactions@2.0.0-experimental.c32f08b(transitive)
- Removedcommander@11.1.0(transitive)