diff --git a/CHANGELOG.md b/CHANGELOG.md index d9f1023..4a10fbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.1-beta.1 (2024-04-04) + +- Fix signer assignment during `connect` (2.0.0-beta.1 regression). + ## 2.0.0-beta.1 (2024-03-21) - Don't automatically broadcast transactions. In order to broadcast transactions, it's now always necessary to call the `wait()` function. diff --git a/dist/offchain/offchain-utils.js b/dist/offchain/offchain-utils.js index 1228347..7540fcc 100644 --- a/dist/offchain/offchain-utils.js +++ b/dist/offchain/offchain-utils.js @@ -152,7 +152,7 @@ const isSignedOffchainAttestationV1 = (attestation) => { return 'v' in attestation && 'r' in attestation && 's' in attestation; }; exports.isSignedOffchainAttestationV1 = isSignedOffchainAttestationV1; -function convertV1AttestationToV2(attestation) { +const convertV1AttestationToV2 = (attestation) => { const { v, r, s, ...rest } = attestation; return { ...rest, @@ -163,5 +163,5 @@ function convertV1AttestationToV2(attestation) { s } }; -} +}; //# sourceMappingURL=offchain-utils.js.map \ No newline at end of file diff --git a/dist/offchain/offchain-utils.js.map b/dist/offchain/offchain-utils.js.map index 1b86c56..9669131 100644 --- a/dist/offchain/offchain-utils.js.map +++ b/dist/offchain/offchain-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"offchain-utils.js","sourceRoot":"","sources":["../../src/offchain/offchain-utils.ts"],"names":[],"mappings":";;;;AAAA,mCAA+C;AAC/C,0DAAoC;AACpC,wDAAwB;AACxB,yCAAuG;AAqChG,MAAM,iBAAiB,GAAG,CAAC,GAAsC,EAAE,EAAE;IAC1E,MAAM,MAAM,GAAG,IAAA,4BAAoB,EAAC,GAAG,CAAC,CAAC;IACzC,OAAO,8BAA8B,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;AACpE,CAAC,CAAC;AAHW,QAAA,iBAAiB,qBAG5B;AAEK,MAAM,oBAAoB,GAAG,CAAC,GAAsC,EAAE,EAAE;IAC7E,MAAM,SAAS,GAAG,IAAA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A6B,GAAG,CAC3C,WAAoE,EACxB,EAAE;IAC9C,OAAO,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,WAAW,IAAI,GAAG,IAAI,WAAW,CAAC;AACxE,CAAC,CAAC;AAJW,QAAA,6BAA6B,iCAIxC;AAEF,MAAM,wBAAwB,GAAG,CAAC,WAAwC,EAA6B,EAAE;IACvG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACzC,OAAO;QACL,GAAG,IAAI;QACP,OAAO,EAAE,qCAA0B,CAAC,QAAQ;QAC5C,SAAS,EAAE;YACT,CAAC;YACD,CAAC;YACD,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/transaction.js b/dist/transaction.js index e414e71..b0ac885 100644 --- a/dist/transaction.js +++ b/dist/transaction.js @@ -33,6 +33,7 @@ class Base { // Connects the API to a specific signer connect(signer) { this.contract = this.contract.connect(signer); + this.signer = signer; return this; } // Gets the chain ID diff --git a/dist/transaction.js.map b/dist/transaction.js.map index 99a1304..226ee3d 100644 --- a/dist/transaction.js.map +++ b/dist/transaction.js.map @@ -1 +1 @@ -{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":";;;AAkBA,MAAa,WAAW;IACN,IAAI,CAAsB;IACzB,MAAM,CAAoB;IAC1B,YAAY,CAA8C;IAE3E,YACE,IAAyB,EACzB,MAAyB,EACzB,YAAyD;QAEzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,aAAsB;QACtC,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxD,MAAM,OAAO,GAA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IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACrE,CAAC;QAED,OAAO,CAAC,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC;IAC/C,CAAC;CACF;AA/BD,oBA+BC"} \ No newline at end of file diff --git a/package.json b/package.json index ced9abb..312e028 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ethereum-attestation-service/eas-sdk", - "version": "2.0.0-beta.1", + "version": "2.0.1-beta.1", "description": "Ethereum Attestation Service - TypeScript/JavaScript SDK", "repository": "git@github.com:ethereum-attestation-service/eas-sdk.git", "author": "Leonid Beder ", diff --git a/src/transaction.ts b/src/transaction.ts index 1246089..a0f37c9 100644 --- a/src/transaction.ts +++ b/src/transaction.ts @@ -59,6 +59,8 @@ export class Base { public connect(signer: TransactionSigner) { this.contract = this.contract.connect(signer as unknown as ContractRunner) as C; + this.signer = signer; + return this; }