@layr-labs/ecloud-sdk 0.4.0 → 0.4.1-dev

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/browser.cjs CHANGED
@@ -360,7 +360,7 @@ function getBillingEnvironmentConfig(build) {
360
360
  return config;
361
361
  }
362
362
  function getBuildType() {
363
- const buildTimeType = true ? "prod"?.toLowerCase() : void 0;
363
+ const buildTimeType = true ? "dev"?.toLowerCase() : void 0;
364
364
  const runtimeType = process.env.BUILD_TYPE?.toLowerCase();
365
365
  const buildType = buildTimeType || runtimeType;
366
366
  if (buildType === "dev") {
@@ -717,7 +717,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
717
717
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
718
718
  var CanUpdateAppProfilePermission = "0x036fef61";
719
719
  function getDefaultClientId() {
720
- const version = true ? "0.4.0" : "0.0.0";
720
+ const version = true ? "0.4.1-dev" : "0.0.0";
721
721
  return `ecloud-sdk/v${version}`;
722
722
  }
723
723
  var UserApiClient = class {
@@ -2781,6 +2781,9 @@ async function executeBatch(options, logger = noopLogger) {
2781
2781
  if (gas?.maxPriorityFeePerGas) {
2782
2782
  txRequest.maxPriorityFeePerGas = gas.maxPriorityFeePerGas;
2783
2783
  }
2784
+ if (gas?.nonce != null) {
2785
+ txRequest.nonce = gas.nonce;
2786
+ }
2784
2787
  const hash = await walletClient.sendTransaction(txRequest);
2785
2788
  logger.info(`Transaction sent: ${hash}`);
2786
2789
  const receipt = await waitForReceipt(publicClient, hash, logger);
@@ -4963,6 +4966,7 @@ ${pendingMessage}`);
4963
4966
  ...gas?.maxPriorityFeePerGas && {
4964
4967
  maxPriorityFeePerGas: gas.maxPriorityFeePerGas
4965
4968
  },
4969
+ ...gas?.nonce != null && { nonce: gas.nonce },
4966
4970
  chain
4967
4971
  });
4968
4972
  logger.info(`Transaction sent: ${hash}`);