From a7e8b7d3cab8855192b541a4e7d578637cecddb5 Mon Sep 17 00:00:00 2001 From: npty Date: Sun, 4 Aug 2024 19:56:50 +0700 Subject: [PATCH] chore: fix collectGas arg passing --- sui/operators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sui/operators.js b/sui/operators.js index d60955c9..b6f4e6f8 100644 --- a/sui/operators.js +++ b/sui/operators.js @@ -190,7 +190,7 @@ if (require.main === module) { .addOption(new Option('--receiver ', 'Address of the receiver')) .requiredOption('--amount ', 'Amount to add gas', parseSuiUnitAmount) .addOption(new Option('--capId ', 'ID of the GasCollectorCap to borrow')) - .action((receiver, options) => mainProcessor(collectGas, [receiver, options.amount], options)); + .action((options) => mainProcessor(collectGas, [options.amount], options)); const storeCapCmd = new Command('storeCap') .command('storeCap')