@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.
@@ -2521,11 +2521,7 @@ class Transaction {
2521
2521
 
2522
2522
 
2523
2523
  compileMessage() {
2524
- if (this._message) {
2525
- if (JSON.stringify(this.toJSON()) !== JSON.stringify(this._json)) {
2526
- throw new Error('Transaction message mutated after being populated from Message');
2527
- }
2528
-
2524
+ if (this._message && JSON.stringify(this.toJSON()) === JSON.stringify(this._json)) {
2529
2525
  return this._message;
2530
2526
  }
2531
2527