Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Aug 1, 2024
1 parent 8b0b7e9 commit 153108b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sui/deploy-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const supportedPackages = PACKAGE_DIRS.map((dir) => ({
* Define post-deployment functions for each supported package below.
*/

async function postDeployGasService(published, keypair, client, config, chain, options ) {
async function postDeployGasService(published, keypair, client, config, chain, options) {
const [gasCollectorCapObjectId, gasServiceObjectId] = getObjectIdsByObjectTypes(published.publishTxn, [
`${published.packageId}::gas_service::GasCollectorCap`,
`${published.packageId}::gas_service::GasService`,
Expand All @@ -90,7 +90,7 @@ async function postDeployGasService(published, keypair, client, config, chain, o
};
}

async function postDeployTest(published, keypair, client, config, chain, options ) {
async function postDeployTest(published, keypair, client, config, chain, options) {
const relayerDiscovery = config.sui.contracts.AxelarGateway?.objects?.RelayerDiscovery;

const [singletonObjectId] = getObjectIdsByObjectTypes(published.publishTxn, [`${published.packageId}::test::Singleton`]);
Expand All @@ -108,7 +108,7 @@ async function postDeployTest(published, keypair, client, config, chain, options
printInfo('Register transaction', registerTx.digest);
}

async function postDeployOperators(published, keypair, client, config, chain, options ) {
async function postDeployOperators(published, keypair, client, config, chain, options) {
const [operatorsObjectId, ownerCapObjectId] = getObjectIdsByObjectTypes(published.publishTxn, [
`${published.packageId}::operators::Operators`,
`${published.packageId}::operators::OwnerCap`,
Expand All @@ -119,7 +119,7 @@ async function postDeployOperators(published, keypair, client, config, chain, op
};
}

async function postDeployAxelarGateway(published, keypair, client, config, chain, options ) {
async function postDeployAxelarGateway(published, keypair, client, config, chain, options) {
const { packageId, publishTxn } = published;
const { minimumRotationDelay, policy, previousSigners } = options;
const operator = options.operator || keypair.toSuiAddress();
Expand Down Expand Up @@ -206,7 +206,7 @@ async function deploy(keypair, client, supportedContract, config, chain, options

// Execute post-deployment function
const executePostDeploymentFn = PACKAGE_MAPPING.POST_DEPLOY_FUNCTIONS[packageName];
await executePostDeploymentFn(published, keypair, client, config, chain, options );
await executePostDeploymentFn(published, keypair, client, config, chain, options);

printInfo(`${packageName} Configuration Updated`, JSON.stringify(chain.contracts[packageName], null, 2));
}
Expand Down

0 comments on commit 153108b

Please sign in to comment.