@dynamic-labs-wallet/evm 1.0.52 → 1.0.53
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/index.cjs +3 -3
- package/index.esm.js +3 -3
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -78,7 +78,7 @@ const serializeECDSASignature = (signature, logger)=>{
|
|
|
78
78
|
|
|
79
79
|
const checkRawPublicKeyInstance = (rawPublicKey)=>{
|
|
80
80
|
if (!(rawPublicKey instanceof browser.EcdsaPublicKey)) {
|
|
81
|
-
throw new
|
|
81
|
+
throw new TypeError('Invalid raw public key');
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
const mapTransactionToEvmTransaction = (transaction)=>{
|
|
@@ -149,7 +149,7 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
149
149
|
throw new Error(browser.ERROR_KEYGEN_FAILED);
|
|
150
150
|
}
|
|
151
151
|
checkRawPublicKeyInstance(rawPublicKey);
|
|
152
|
-
const { accountAddress, publicKeyHex } =
|
|
152
|
+
const { accountAddress, publicKeyHex } = this.deriveAccountAddress({
|
|
153
153
|
rawPublicKey: rawPublicKey
|
|
154
154
|
});
|
|
155
155
|
// Update client key shares in wallet map
|
|
@@ -387,7 +387,7 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
387
387
|
throw new Error(browser.ERROR_IMPORT_PRIVATE_KEY);
|
|
388
388
|
}
|
|
389
389
|
checkRawPublicKeyInstance(rawPublicKey);
|
|
390
|
-
const { accountAddress, publicKeyHex } =
|
|
390
|
+
const { accountAddress, publicKeyHex } = this.deriveAccountAddress({
|
|
391
391
|
rawPublicKey: rawPublicKey
|
|
392
392
|
});
|
|
393
393
|
// Update client key shares in wallet map
|
package/index.esm.js
CHANGED
|
@@ -76,7 +76,7 @@ const serializeECDSASignature = (signature, logger)=>{
|
|
|
76
76
|
|
|
77
77
|
const checkRawPublicKeyInstance = (rawPublicKey)=>{
|
|
78
78
|
if (!(rawPublicKey instanceof EcdsaPublicKey)) {
|
|
79
|
-
throw new
|
|
79
|
+
throw new TypeError('Invalid raw public key');
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
const mapTransactionToEvmTransaction = (transaction)=>{
|
|
@@ -147,7 +147,7 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
147
147
|
throw new Error(ERROR_KEYGEN_FAILED);
|
|
148
148
|
}
|
|
149
149
|
checkRawPublicKeyInstance(rawPublicKey);
|
|
150
|
-
const { accountAddress, publicKeyHex } =
|
|
150
|
+
const { accountAddress, publicKeyHex } = this.deriveAccountAddress({
|
|
151
151
|
rawPublicKey: rawPublicKey
|
|
152
152
|
});
|
|
153
153
|
// Update client key shares in wallet map
|
|
@@ -385,7 +385,7 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
385
385
|
throw new Error(ERROR_IMPORT_PRIVATE_KEY);
|
|
386
386
|
}
|
|
387
387
|
checkRawPublicKeyInstance(rawPublicKey);
|
|
388
|
-
const { accountAddress, publicKeyHex } =
|
|
388
|
+
const { accountAddress, publicKeyHex } = this.deriveAccountAddress({
|
|
389
389
|
rawPublicKey: rawPublicKey
|
|
390
390
|
});
|
|
391
391
|
// Update client key shares in wallet map
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/evm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/browser": "1.0.
|
|
8
|
-
"@dynamic-labs-wallet/core": "1.0.
|
|
7
|
+
"@dynamic-labs-wallet/browser": "1.0.53",
|
|
8
|
+
"@dynamic-labs-wallet/core": "1.0.53",
|
|
9
9
|
"@dynamic-labs/sdk-api-core": "^0.0.984",
|
|
10
10
|
"@faker-js/faker": "^9.5.0"
|
|
11
11
|
},
|