Skip to content

Commit c6ec0e6

Browse files
cosmetic: unify order of arguments in sui-indexer initializer
Signed-off-by: Robert Zaremba <robert@zaremba.ch>
1 parent 58c150d commit c6ec0e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/sui-indexer/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ async function startCronJobs(env: Env): Promise<void> {
4141
const activeNetworks = await storage.getActiveNetworks();
4242
const mnemonic = await getSecret(env.NBTC_MINTING_SIGNER_MNEMONIC);
4343
const suiClients = await createSuiClients(activeNetworks, mnemonic);
44-
4544
const jobs: JobDefinition[] = [
4645
{
4746
name: "CronSuiIndexer",
4847
run: () => runSuiIndexer(storage, activeNetworks, suiClients),
4948
},
5049
{
5150
name: "CronRedeemSolver",
52-
run: () => runRedeemSolver(storage, env, suiClients, activeNetworks),
51+
run: () => runRedeemSolver(storage, env, activeNetworks, suiClients),
5352
},
5453
];
5554

@@ -162,8 +161,8 @@ async function poolAndProcessEvents(
162161
async function runRedeemSolver(
163162
storage: D1Storage,
164163
env: Env,
165-
suiClients: Map<SuiNet, SuiClient>,
166164
activeNetworks: SuiNet[],
165+
suiClients: Map<SuiNet, SuiClient>,
167166
) {
168167
logger.info({ msg: "Running scheduled redeem solver task..." });
169168
const service = new RedeemService(

0 commit comments

Comments
 (0)