@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.41.4",
3
+ "version": "1.41.5",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
@@ -70,7 +70,6 @@
70
70
  "js-sha3": "^0.8.0",
71
71
  "rpc-websockets": "^7.4.2",
72
72
  "secp256k1": "^4.0.2",
73
- "sinon-chai": "^3.7.0",
74
73
  "superstruct": "^0.14.2",
75
74
  "tweetnacl": "^1.0.0"
76
75
  },
@@ -90,7 +89,7 @@
90
89
  "@rollup/plugin-multi-entry": "^4.0.0",
91
90
  "@rollup/plugin-node-resolve": "^13.0.0",
92
91
  "@rollup/plugin-replace": "^4.0.0",
93
- "@solana/spl-token": "^0.1.2",
92
+ "@solana/spl-token": "^0.2.0",
94
93
  "@types/bn.js": "^5.1.0",
95
94
  "@types/bs58": "^4.0.1",
96
95
  "@types/chai": "^4.2.15",
@@ -128,6 +127,7 @@
128
127
  "rollup-plugin-terser": "^7.0.2",
129
128
  "semantic-release": "^18.0.0",
130
129
  "sinon": "^13.0.2",
130
+ "sinon-chai": "^3.7.0",
131
131
  "start-server-and-test": "^1.12.0",
132
132
  "ts-mocha": "^9.0.2",
133
133
  "ts-node": "^10.0.0",
@@ -267,12 +267,10 @@ export class Transaction {
267
267
  * Compile transaction data
268
268
  */
269
269
  compileMessage(): Message {
270
- if (this._message) {
271
- if (JSON.stringify(this.toJSON()) !== JSON.stringify(this._json)) {
272
- throw new Error(
273
- 'Transaction message mutated after being populated from Message',
274
- );
275
- }
270
+ if (
271
+ this._message &&
272
+ JSON.stringify(this.toJSON()) === JSON.stringify(this._json)
273
+ ) {
276
274
  return this._message;
277
275
  }
278
276