Skip to content

Commit d3e810f

Browse files
committed
pnpm format
1 parent 92f48c9 commit d3e810f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • packages/wallet/core/src/state/arweave

packages/wallet/core/src/state/arweave/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,7 @@ function pruneChoiceSet(choiceSet: TopologyChoiceSet): TopologyChoiceSet {
500500
function buildTopologyChoiceSet(topology: Config.Topology, cap: bigint): TopologyChoiceSet {
501501
if (Signature.isSignedSignerLeaf(topology)) {
502502
const choices: TopologyChoiceSet = { slotCount: 1, choices: new Map() }
503-
addChoice(
504-
choices,
505-
makeChoice({ type: 'signer', address: topology.address, weight: topology.weight }, 0n, 0, '0'),
506-
)
503+
addChoice(choices, makeChoice({ type: 'signer', address: topology.address, weight: topology.weight }, 0n, 0, '0'))
507504

508505
if (topology.weight > 0n) {
509506
addChoice(choices, makeChoice(topology, clampWeight(topology.weight, cap), 1, '1'))
@@ -547,7 +544,10 @@ function buildTopologyChoiceSet(topology: Config.Topology, cap: bigint): Topolog
547544
if (Config.isNestedLeaf(topology)) {
548545
const treeChoices = buildTopologyChoiceSet(topology.tree, topology.threshold)
549546
const choices: TopologyChoiceSet = { slotCount: treeChoices.slotCount, choices: new Map() }
550-
addChoice(choices, makeChoice(Hex.fromBytes(Config.hashConfiguration(topology)), 0n, 0, zeroMask(treeChoices.slotCount)))
547+
addChoice(
548+
choices,
549+
makeChoice(Hex.fromBytes(Config.hashConfiguration(topology)), 0n, 0, zeroMask(treeChoices.slotCount)),
550+
)
551551

552552
const satisfied = treeChoices.choices.get(topology.threshold.toString())
553553
if (satisfied && topology.weight > 0n) {

0 commit comments

Comments
 (0)