@exodus/solana-lib 1.6.11 → 1.7.1

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.6.11",
3
+ "version": "1.7.1",
4
4
  "description": "Exodus internal Solana low-level library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -26,5 +26,6 @@
26
26
  "create-hash": "^1.1.3",
27
27
  "lodash": "^4.17.11",
28
28
  "tweetnacl": "^1.0.3"
29
- }
29
+ },
30
+ "gitHead": "c0a8ca34924dc74d81ea0b339aa0909062c79d1a"
30
31
  }
@@ -11,6 +11,7 @@ export async function signHardware({ unsignedTx, hardwareDevice, accountIndex })
11
11
  const tx = prepareForSigning(unsignedTx)
12
12
  const signatures = await signWithHardwareWallet({ tx, hardwareDevice, accountIndex })
13
13
  applySignatures({ tx, signatures })
14
+
14
15
  return extractTransaction({ tx })
15
16
  }
16
17
 
@@ -80,6 +80,13 @@ export class PublicKey {
80
80
  return this.toBase58()
81
81
  }
82
82
 
83
+ /**
84
+ * Returns a JSON representation of the public key
85
+ */
86
+ toJSON() {
87
+ return this.toBase58()
88
+ }
89
+
83
90
  /**
84
91
  * Find a valid program address
85
92
  *