@solana/web3.js 1.41.4 → 1.41.5

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/lib/index.cjs.js CHANGED
@@ -2533,11 +2533,7 @@ class Transaction {
2533
2533
 
2534
2534
 
2535
2535
  compileMessage() {
2536
- if (this._message) {
2537
- if (JSON.stringify(this.toJSON()) !== JSON.stringify(this._json)) {
2538
- throw new Error('Transaction message mutated after being populated from Message');
2539
- }
2540
-
2536
+ if (this._message && JSON.stringify(this.toJSON()) === JSON.stringify(this._json)) {
2541
2537
  return this._message;
2542
2538
  }
2543
2539