genlayer-js 0.14.0 → 0.14.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
 
2
2
 
3
+ ## 0.14.2 (2025-08-14)
4
+
5
+ ## 0.14.1 (2025-08-13)
6
+
3
7
  ## 0.14.0 (2025-07-30)
4
8
 
5
9
 
package/dist/index.cjs CHANGED
@@ -589,14 +589,16 @@ var _sendTransaction = async ({
589
589
  data: encodedData,
590
590
  type: "legacy",
591
591
  nonce: Number(nonce),
592
- value
592
+ value,
593
+ gas: 21000n
593
594
  });
594
595
  if (_optionalChain([validatedSenderAccount, 'optionalAccess', _20 => _20.type]) !== "local") {
595
596
  const formattedRequest = {
596
597
  from: transactionRequest.from,
597
598
  to: transactionRequest.to,
598
599
  data: encodedData,
599
- value: transactionRequest.value ? `0x${transactionRequest.value.toString(16)}` : "0x0"
600
+ value: transactionRequest.value ? `0x${transactionRequest.value.toString(16)}` : "0x0",
601
+ gas: transactionRequest.gas ? `0x${transactionRequest.gas.toString(16)}` : "0x5208"
600
602
  };
601
603
  return await client.request({
602
604
  method: "eth_sendTransaction",
package/dist/index.js CHANGED
@@ -589,14 +589,16 @@ var _sendTransaction = async ({
589
589
  data: encodedData,
590
590
  type: "legacy",
591
591
  nonce: Number(nonce),
592
- value
592
+ value,
593
+ gas: 21000n
593
594
  });
594
595
  if (validatedSenderAccount?.type !== "local") {
595
596
  const formattedRequest = {
596
597
  from: transactionRequest.from,
597
598
  to: transactionRequest.to,
598
599
  data: encodedData,
599
- value: transactionRequest.value ? `0x${transactionRequest.value.toString(16)}` : "0x0"
600
+ value: transactionRequest.value ? `0x${transactionRequest.value.toString(16)}` : "0x0",
601
+ gas: transactionRequest.gas ? `0x${transactionRequest.gas.toString(16)}` : "0x5208"
600
602
  };
601
603
  return await client.request({
602
604
  method: "eth_sendTransaction",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.14.0",
4
+ "version": "0.14.2",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -247,6 +247,7 @@ const _sendTransaction = async ({
247
247
  type: "legacy",
248
248
  nonce: Number(nonce),
249
249
  value: value,
250
+ gas: 21000n,
250
251
  });
251
252
 
252
253
  if (validatedSenderAccount?.type !== "local") {
@@ -255,6 +256,7 @@ const _sendTransaction = async ({
255
256
  to: transactionRequest.to,
256
257
  data: encodedData,
257
258
  value: transactionRequest.value ? `0x${transactionRequest.value.toString(16)}` : "0x0",
259
+ gas: transactionRequest.gas ? `0x${transactionRequest.gas.toString(16)}` : "0x5208",
258
260
  };
259
261
 
260
262
  return await client.request({