@appliedblockchain/silentdatarollup-core 1.0.5 → 1.0.7

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.
@@ -6,7 +6,6 @@ var SIGN_RPC_METHODS = [
6
6
  "eth_estimateGas",
7
7
  "eth_getProof",
8
8
  "eth_getTransactionByHash",
9
- "eth_getTransactionCount",
10
9
  "eth_getTransactionReceipt"
11
10
  ];
12
11
  var eip721Domain = {
@@ -546,12 +545,6 @@ var CustomContractRunner = class {
546
545
  this.signer = signer;
547
546
  }
548
547
  async sendTransaction(tx) {
549
- const signerAddress = await this.signer.getAddress();
550
- const latestNonce = await this.provider.getTransactionCount(
551
- signerAddress,
552
- "latest"
553
- );
554
- tx.nonce = latestNonce;
555
548
  if (!tx.gasLimit) {
556
549
  tx.gasLimit = await this.provider.estimateGas(tx);
557
550
  }
package/dist/index.js CHANGED
@@ -68,7 +68,6 @@ var SIGN_RPC_METHODS = [
68
68
  "eth_estimateGas",
69
69
  "eth_getProof",
70
70
  "eth_getTransactionByHash",
71
- "eth_getTransactionCount",
72
71
  "eth_getTransactionReceipt"
73
72
  ];
74
73
  var eip721Domain = {
@@ -604,12 +603,6 @@ var CustomContractRunner = class {
604
603
  this.signer = signer;
605
604
  }
606
605
  async sendTransaction(tx) {
607
- const signerAddress = await this.signer.getAddress();
608
- const latestNonce = await this.provider.getTransactionCount(
609
- signerAddress,
610
- "latest"
611
- );
612
- tx.nonce = latestNonce;
613
606
  if (!tx.gasLimit) {
614
607
  tx.gasLimit = await this.provider.estimateGas(tx);
615
608
  }
package/dist/index.mjs CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  getAuthHeaders,
27
27
  isSignableContractCall,
28
28
  prepareTypedDataPayload
29
- } from "./chunk-PTTWND7Y.mjs";
29
+ } from "./chunk-5VQIOQAW.mjs";
30
30
  export {
31
31
  ChainId,
32
32
  DEBUG_NAMESPACE,
package/dist/tests.d.mts CHANGED
@@ -4,7 +4,7 @@ import http from 'http';
4
4
  interface ResponseBody {
5
5
  jsonrpc: string;
6
6
  id: any;
7
- result?: string;
7
+ result?: string | null;
8
8
  }
9
9
  interface RequestData {
10
10
  headers: http.IncomingHttpHeaders;
package/dist/tests.d.ts CHANGED
@@ -4,7 +4,7 @@ import http from 'http';
4
4
  interface ResponseBody {
5
5
  jsonrpc: string;
6
6
  id: any;
7
- result?: string;
7
+ result?: string | null;
8
8
  }
9
9
  interface RequestData {
10
10
  headers: http.IncomingHttpHeaders;
package/dist/tests.js CHANGED
@@ -86,6 +86,8 @@ function createCustomRpcServer(callback) {
86
86
  };
87
87
  if (requestBody.method === "eth_chainId") {
88
88
  responseBody.result = `0x${CHAIN_ID.toString(16)}`;
89
+ } else if (requestBody.method === "eth_getTransactionReceipt") {
90
+ responseBody.result = null;
89
91
  } else {
90
92
  responseBody.result = "0x0";
91
93
  }
package/dist/tests.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-PTTWND7Y.mjs";
1
+ import "./chunk-5VQIOQAW.mjs";
2
2
 
3
3
  // tests/utils/mocked-custom-grpc.ts
4
4
  import http from "http";
@@ -27,6 +27,8 @@ function createCustomRpcServer(callback) {
27
27
  };
28
28
  if (requestBody.method === "eth_chainId") {
29
29
  responseBody.result = `0x${CHAIN_ID.toString(16)}`;
30
+ } else if (requestBody.method === "eth_getTransactionReceipt") {
31
+ responseBody.result = null;
30
32
  } else {
31
33
  responseBody.result = "0x0";
32
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appliedblockchain/silentdatarollup-core",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Core library for Silent Data [Rollup]",
5
5
  "author": "Applied Blockchain",
6
6
  "homepage": "https://github.com/appliedblockchain/silent-data-rollup-providers#readme",