genlayer-js 1.1.0 → 1.1.1
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 +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -943,10 +943,11 @@ var _encodeAddTransactionData = ({
|
|
|
943
943
|
functionName: "addTransaction",
|
|
944
944
|
args: addTransactionArgs
|
|
945
945
|
});
|
|
946
|
+
const validUntil = BigInt(Math.floor(Date.now() / 1e3) + 3600);
|
|
946
947
|
const encodedDataV6 = _viem.encodeFunctionData.call(void 0, {
|
|
947
948
|
abi: ADD_TRANSACTION_ABI_V6,
|
|
948
949
|
functionName: "addTransaction",
|
|
949
|
-
args: [...addTransactionArgs,
|
|
950
|
+
args: [...addTransactionArgs, validUntil]
|
|
950
951
|
});
|
|
951
952
|
if (getAddTransactionInputCount(_optionalChain([client, 'access', _42 => _42.chain, 'access', _43 => _43.consensusMainContract, 'optionalAccess', _44 => _44.abi])) >= 6) {
|
|
952
953
|
return {
|
package/dist/index.js
CHANGED
|
@@ -943,10 +943,11 @@ var _encodeAddTransactionData = ({
|
|
|
943
943
|
functionName: "addTransaction",
|
|
944
944
|
args: addTransactionArgs
|
|
945
945
|
});
|
|
946
|
+
const validUntil = BigInt(Math.floor(Date.now() / 1e3) + 3600);
|
|
946
947
|
const encodedDataV6 = encodeFunctionData({
|
|
947
948
|
abi: ADD_TRANSACTION_ABI_V6,
|
|
948
949
|
functionName: "addTransaction",
|
|
949
|
-
args: [...addTransactionArgs,
|
|
950
|
+
args: [...addTransactionArgs, validUntil]
|
|
950
951
|
});
|
|
951
952
|
if (getAddTransactionInputCount(client.chain.consensusMainContract?.abi) >= 6) {
|
|
952
953
|
return {
|