@exodus/solana-lib 1.3.12 → 1.3.13
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": "@exodus/solana-lib",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Exodus internal Solana low-level library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -28,5 +28,6 @@
|
|
|
28
28
|
"create-hash": "^1.1.3",
|
|
29
29
|
"lodash": "^4.17.11",
|
|
30
30
|
"tweetnacl": "^1.0.3"
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
"gitHead": "12104775b7a98f110b78e928321ca0d530757d88"
|
|
32
33
|
}
|
|
@@ -262,8 +262,9 @@ export class Transaction {
|
|
|
262
262
|
|
|
263
263
|
// Sort. Prioritizing first by signer, then by writable
|
|
264
264
|
accountMetas.sort(function(x, y) {
|
|
265
|
+
const pubkeySorting = x.pubkey.toBase58().localeCompare(y.pubkey.toBase58())
|
|
265
266
|
const checkSigner = x.isSigner === y.isSigner ? 0 : x.isSigner ? -1 : 1
|
|
266
|
-
const checkWritable = x.isWritable === y.isWritable ?
|
|
267
|
+
const checkWritable = x.isWritable === y.isWritable ? pubkeySorting : x.isWritable ? -1 : 1
|
|
267
268
|
return checkSigner || checkWritable
|
|
268
269
|
})
|
|
269
270
|
|