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 +4 -0
- package/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
- package/src/contracts/actions.ts +2 -0
package/CHANGELOG.md
CHANGED
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
package/src/contracts/actions.ts
CHANGED
|
@@ -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({
|