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.
@@ -55529,11 +55529,14 @@ var AlkanesRpcProvider = class {
55529
55529
  }
55530
55530
  async alkanes_simulate(req) {
55531
55531
  await this.provider.pacer.waitForPacer();
55532
+ const currentHeight = consumeOrThrow(
55533
+ await this.alkanes_metashrewHeight().call()
55534
+ );
55532
55535
  const merged = {
55533
55536
  alkanes: req.alkanes ?? [],
55534
55537
  transaction: req.transaction ?? "0x",
55535
55538
  block: "0x",
55536
- height: "908474",
55539
+ height: currentHeight,
55537
55540
  txindex: req.txindex ?? 0,
55538
55541
  target: {
55539
55542
  block: req.target?.block?.toString() ?? "0",
@@ -55544,7 +55547,7 @@ var AlkanesRpcProvider = class {
55544
55547
  refundPointer: req.refundPointer ?? 0,
55545
55548
  vout: req.vout ?? 0
55546
55549
  };
55547
- console.log(merged);
55550
+ await this.provider.pacer.waitForPacer();
55548
55551
  const res = await this.rpc(
55549
55552
  "alkanes_simulate",
55550
55553
  [merged]