alkanesjs 1.2.2 → 1.2.3

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.js CHANGED
@@ -45385,11 +45385,14 @@ var AlkanesRpcProvider = class {
45385
45385
  }
45386
45386
  async alkanes_simulate(req) {
45387
45387
  await this.provider.pacer.waitForPacer();
45388
+ const currentHeight = consumeOrThrow(
45389
+ await this.alkanes_metashrewHeight().call()
45390
+ );
45388
45391
  const merged = {
45389
45392
  alkanes: req.alkanes ?? [],
45390
45393
  transaction: req.transaction ?? "0x",
45391
45394
  block: "0x",
45392
- height: "908474",
45395
+ height: currentHeight,
45393
45396
  txindex: req.txindex ?? 0,
45394
45397
  target: {
45395
45398
  block: req.target?.block?.toString() ?? "0",
@@ -45400,7 +45403,7 @@ var AlkanesRpcProvider = class {
45400
45403
  refundPointer: req.refundPointer ?? 0,
45401
45404
  vout: req.vout ?? 0
45402
45405
  };
45403
- console.log(merged);
45406
+ await this.provider.pacer.waitForPacer();
45404
45407
  const res = await this.rpc(
45405
45408
  "alkanes_simulate",
45406
45409
  [merged]