@atomiqlabs/chain-evm 1.0.0-dev.98 → 1.0.0-dev.99

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.
@@ -18,7 +18,10 @@ class EVMSigner {
18
18
  async sendTransaction(transaction, onBeforePublish) {
19
19
  const txResponse = await this.account.sendTransaction(transaction);
20
20
  if (onBeforePublish != null)
21
- await onBeforePublish(txResponse.hash, ethers_1.Transaction.from(txResponse).serialized);
21
+ await onBeforePublish(txResponse.hash, ethers_1.Transaction.from({
22
+ ...txResponse,
23
+ chainId: transaction.chainId
24
+ }).serialized);
22
25
  return txResponse;
23
26
  }
24
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-evm",
3
- "version": "1.0.0-dev.98",
3
+ "version": "1.0.0-dev.99",
4
4
  "description": "EVM specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -25,7 +25,10 @@ export class EVMSigner implements AbstractSigner {
25
25
 
26
26
  async sendTransaction(transaction: TransactionRequest, onBeforePublish?: (txId: string, rawTx: string) => Promise<void>): Promise<TransactionResponse> {
27
27
  const txResponse = await this.account.sendTransaction(transaction);
28
- if(onBeforePublish!=null) await onBeforePublish(txResponse.hash, Transaction.from(txResponse).serialized);
28
+ if(onBeforePublish!=null) await onBeforePublish(txResponse.hash, Transaction.from({
29
+ ...txResponse,
30
+ chainId: transaction.chainId
31
+ }).serialized);
29
32
  return txResponse;
30
33
  }
31
34