@cowprotocol/sdk-ethers-v6-adapter 0.3.14 → 0.4.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/dist/index.js +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -495,7 +495,7 @@ var TypedDataVersionedSigner = class extends EthersV6SignerAdapter {
|
|
|
495
495
|
if (!this.provider) {
|
|
496
496
|
throw new Error("Provider is not set");
|
|
497
497
|
}
|
|
498
|
-
return await this.provider.send(this._signMethod, [
|
|
498
|
+
return await this.provider.send(this._signMethod, [(0, import_sdk_common3.getAddressKey)(address), msg]);
|
|
499
499
|
}
|
|
500
500
|
async resolveName(name) {
|
|
501
501
|
if (this.signer.resolveName) {
|
|
@@ -536,7 +536,7 @@ var IntChainIdTypedDataV4Signer = class extends EthersV6SignerAdapter {
|
|
|
536
536
|
if (!this.provider) {
|
|
537
537
|
throw new Error("Provider is not set");
|
|
538
538
|
}
|
|
539
|
-
return await this.provider.send("eth_signTypedData_v4", [
|
|
539
|
+
return await this.provider.send("eth_signTypedData_v4", [(0, import_sdk_common3.getAddressKey)(address), msg]);
|
|
540
540
|
}
|
|
541
541
|
async resolveName(name) {
|
|
542
542
|
if (this.signer.resolveName) {
|
package/dist/index.mjs
CHANGED
|
@@ -408,7 +408,7 @@ var EthersV6Utils = class {
|
|
|
408
408
|
|
|
409
409
|
// src/EthersV6SignerAdapter.ts
|
|
410
410
|
import { TypedDataEncoder as TypedDataEncoder2, toBeHex } from "ethers";
|
|
411
|
-
import { AbstractSigner } from "@cowprotocol/sdk-common";
|
|
411
|
+
import { AbstractSigner, getAddressKey } from "@cowprotocol/sdk-common";
|
|
412
412
|
var EthersV6SignerAdapter = class extends AbstractSigner {
|
|
413
413
|
_signer;
|
|
414
414
|
constructor(signer) {
|
|
@@ -504,7 +504,7 @@ var TypedDataVersionedSigner = class extends EthersV6SignerAdapter {
|
|
|
504
504
|
if (!this.provider) {
|
|
505
505
|
throw new Error("Provider is not set");
|
|
506
506
|
}
|
|
507
|
-
return await this.provider.send(this._signMethod, [address
|
|
507
|
+
return await this.provider.send(this._signMethod, [getAddressKey(address), msg]);
|
|
508
508
|
}
|
|
509
509
|
async resolveName(name) {
|
|
510
510
|
if (this.signer.resolveName) {
|
|
@@ -545,7 +545,7 @@ var IntChainIdTypedDataV4Signer = class extends EthersV6SignerAdapter {
|
|
|
545
545
|
if (!this.provider) {
|
|
546
546
|
throw new Error("Provider is not set");
|
|
547
547
|
}
|
|
548
|
-
return await this.provider.send("eth_signTypedData_v4", [address
|
|
548
|
+
return await this.provider.send("eth_signTypedData_v4", [getAddressKey(address), msg]);
|
|
549
549
|
}
|
|
550
550
|
async resolveName(name) {
|
|
551
551
|
if (this.signer.resolveName) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/sdk-ethers-v6-adapter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Ethers v6 adapter for CoW Protocol SDK",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@cowprotocol/sdk-common": "0.
|
|
21
|
+
"@cowprotocol/sdk-common": "0.9.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"ethers": "^6.13.7"
|