@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.esm.js CHANGED
@@ -2499,11 +2499,7 @@ class Transaction {
2499
2499
 
2500
2500
 
2501
2501
  compileMessage() {
2502
- if (this._message) {
2503
- if (JSON.stringify(this.toJSON()) !== JSON.stringify(this._json)) {
2504
- throw new Error('Transaction message mutated after being populated from Message');
2505
- }
2506
-
2502
+ if (this._message && JSON.stringify(this.toJSON()) === JSON.stringify(this._json)) {
2507
2503
  return this._message;
2508
2504
  }
2509
2505