@typeberry/convert 0.1.3-0eba10b → 0.1.3-3344df0

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/index.js CHANGED
@@ -16773,12 +16773,6 @@ class state_update_AccumulationStateUpdate {
16773
16773
  }
16774
16774
  return update;
16775
16775
  }
16776
- /** Retrieve and clear pending transfers. */
16777
- takeTransfers() {
16778
- const transfers = this.transfers;
16779
- this.transfers = [];
16780
- return transfers;
16781
- }
16782
16776
  }
16783
16777
  class state_update_PartiallyUpdatedState {
16784
16778
  state;
@@ -24139,7 +24133,7 @@ class accumulate_Accumulate {
24139
24133
  const accumulateData = new AccumulateData(reportsToAccumulateInParallel, transfers, autoAccumulateServices);
24140
24134
  const reportsToAccumulateSequentially = reports.subview(i);
24141
24135
  const { gasCost, state: stateAfterParallelAcc, ...rest } = await this.accumulateInParallel(accumulateData, slot, entropy, statistics, stateUpdate);
24142
- const newTransfers = stateAfterParallelAcc.takeTransfers();
24136
+ const newTransfers = stateAfterParallelAcc.transfers;
24143
24137
  assertEmpty(rest);
24144
24138
  // NOTE [ToDr] recursive invocation
24145
24139
  const { accumulatedReports, gasCost: seqGasCost, state, ...seqRest } = await this.accumulateSequentially(tryAsServiceGas(gasLimit - gasCost), reportsToAccumulateSequentially, newTransfers, slot, entropy, statistics, stateAfterParallelAcc, []);