Skip to content

Commit

Permalink
Simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Feb 3, 2025
1 parent c9e1241 commit f0f2d01
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ export default class CheqdInternalAccumulatorModule extends injectParams(
witnessUpdateInfo,
);

const accumulators = resources.map((acc) => CheqdStoredAccumulator.from(
JSON.parse(u8aToString(validateResource(acc, String(name), Type))),
));
const accumulators = resources.map((acc) => CheqdStoredAccumulator.from(validateResource(acc, String(name), Type)));
const updates = accumulators.slice(1).map(mapUpdate);

return new CheqdAccumulatorHistory(
Expand Down

0 comments on commit f0f2d01

Please sign in to comment.