@solana/web3.js 1.44.1 → 1.44.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.44.1",
3
+ "version": "1.44.2",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
package/src/connection.ts CHANGED
@@ -3566,7 +3566,16 @@ export class Connection {
3566
3566
  if ('error' in res) {
3567
3567
  throw new Error('failed to get transactions: ' + res.error.message);
3568
3568
  }
3569
- return res.result;
3569
+ const result = res.result;
3570
+ if (!result) return result;
3571
+
3572
+ return {
3573
+ ...result,
3574
+ transaction: {
3575
+ ...result.transaction,
3576
+ message: new Message(result.transaction.message),
3577
+ },
3578
+ };
3570
3579
  });
3571
3580
 
3572
3581
  return res;