@audius/sdk 3.0.8-beta.7 → 3.0.8-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +62 -37
- package/dist/core.js.map +1 -1
- package/dist/index.cjs.js +64 -39
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +64 -39
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +64 -39
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +64 -39
- package/dist/native-libs.js.map +1 -1
- package/dist/web-libs.js +64 -39
- package/dist/web-libs.js.map +1 -1
- package/package.json +2 -2
- package/src/services/solana/transactionHandler.ts +17 -1
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audius/sdk",
|
|
3
|
-
"version": "3.0.8-beta.
|
|
3
|
+
"version": "3.0.8-beta.8",
|
|
4
4
|
"audius": {
|
|
5
|
-
"releaseSHA": "
|
|
5
|
+
"releaseSHA": "a4c4a74b40fe6089348aed0d7ccf545de988e506"
|
|
6
6
|
},
|
|
7
7
|
"description": "Audius SDK",
|
|
8
8
|
"keywords": [
|
|
@@ -207,7 +207,23 @@ export class TransactionHandler {
|
|
|
207
207
|
})
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
let rawTransaction: Buffer
|
|
211
|
+
try {
|
|
212
|
+
rawTransaction = tx.serialize()
|
|
213
|
+
} catch (e) {
|
|
214
|
+
logger.warn(`transactionHandler: transaction serialization failed: ${e}`)
|
|
215
|
+
let errorCode = null
|
|
216
|
+
let error = null
|
|
217
|
+
if (e instanceof Error) {
|
|
218
|
+
error = e.message
|
|
219
|
+
errorCode = this._parseSolanaErrorCode(error)
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
res: null,
|
|
223
|
+
error,
|
|
224
|
+
errorCode
|
|
225
|
+
}
|
|
226
|
+
}
|
|
211
227
|
|
|
212
228
|
// Send the txn
|
|
213
229
|
|