@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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@audius/sdk",
3
- "version": "3.0.8-beta.7",
3
+ "version": "3.0.8-beta.8",
4
4
  "audius": {
5
- "releaseSHA": "72c223f61d61e353356d3b0f33e8db6a17e5b7a9"
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
- const rawTransaction = tx.serialize()
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