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 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, 0n]
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, 0n]
950
+ args: [...addTransactionArgs, validUntil]
950
951
  });
951
952
  if (getAddTransactionInputCount(client.chain.consensusMainContract?.abi) >= 6) {
952
953
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",