genlayer-js 1.1.2 → 1.2.0

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.cjs CHANGED
@@ -41,20 +41,9 @@ function accountActions(client) {
41
41
  params: [address, amount]
42
42
  });
43
43
  },
44
- /**
45
- * Returns the transaction count (next nonce) for an address.
46
- *
47
- * Defaults to `"pending"` so that rapid sequential submissions from the
48
- * same account receive distinct nonces. Two submissions issued before the
49
- * first confirms would otherwise both see the same `"latest"` count and
50
- * collide with an "already known" or "replacement underpriced" error.
51
- *
52
- * Pass `block: "latest"` explicitly for confirmed-only state
53
- * (e.g. reconciliation tooling comparing against on-chain finality).
54
- */
55
44
  getCurrentNonce: async ({
56
45
  address,
57
- block = "pending"
46
+ block = "latest"
58
47
  }) => {
59
48
  const addressToUse = address || _optionalChain([client, 'access', _3 => _3.account, 'optionalAccess', _4 => _4.address]);
60
49
  if (!addressToUse) {
package/dist/index.js CHANGED
@@ -41,20 +41,9 @@ function accountActions(client) {
41
41
  params: [address, amount]
42
42
  });
43
43
  },
44
- /**
45
- * Returns the transaction count (next nonce) for an address.
46
- *
47
- * Defaults to `"pending"` so that rapid sequential submissions from the
48
- * same account receive distinct nonces. Two submissions issued before the
49
- * first confirms would otherwise both see the same `"latest"` count and
50
- * collide with an "already known" or "replacement underpriced" error.
51
- *
52
- * Pass `block: "latest"` explicitly for confirmed-only state
53
- * (e.g. reconciliation tooling comparing against on-chain finality).
54
- */
55
44
  getCurrentNonce: async ({
56
45
  address,
57
- block = "pending"
46
+ block = "latest"
58
47
  }) => {
59
48
  const addressToUse = address || client.account?.address;
60
49
  if (!addressToUse) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",