Skip to content

Commit 025cb2e

Browse files
committed
fix: style fixes from prettier
Refs: #8863
1 parent eb44218 commit 025cb2e

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

multichain-testing/test/xcs-swap-anything/swap-anything.test.ts

+29-22
Original file line numberDiff line numberDiff line change
@@ -88,44 +88,51 @@ const fundRemote = async (
8888
const filename = fileURLToPath(import.meta.url);
8989
const dirname = path.dirname(filename);
9090

91-
const setupXcsContracts = async (t) => {
92-
console.log("Setting XXC Contracts ...");
91+
const setupXcsContracts = async t => {
92+
console.log('Setting XXC Contracts ...');
9393
try {
9494
const scriptPath = path.resolve(dirname, '../../scripts/setup-xcs.sh');
9595
const { stdout } = await execa(scriptPath);
96-
console.log("setup-xcs script output:", stdout);
96+
console.log('setup-xcs script output:', stdout);
9797
} catch (error) {
9898
t.fail(`setup-xcs script failed with error: ${error}`);
9999
}
100-
}
100+
};
101101

102-
const createOsmosisPool = async (t) => {
103-
console.log("Creating Osmosis Pool ...");
102+
const createOsmosisPool = async t => {
103+
console.log('Creating Osmosis Pool ...');
104104
try {
105-
const scriptPath = path.resolve(dirname, '../../scripts/create-osmosis-pool.sh');
105+
const scriptPath = path.resolve(
106+
dirname,
107+
'../../scripts/create-osmosis-pool.sh',
108+
);
106109
const { stdout } = await execa(scriptPath);
107-
console.log("create-osmosis-pool script output:", stdout);
110+
console.log('create-osmosis-pool script output:', stdout);
108111
} catch (error) {
109112
t.fail(`create-osmosis-pool failed with error: ${error}`);
110113
}
111-
}
114+
};
112115

113-
const setupXcsState = async (t) => {
114-
console.log("Setting XXC State ...");
116+
const setupXcsState = async t => {
117+
console.log('Setting XXC State ...');
115118
try {
116-
const { stdout } = await execa('make', ['tx-chain-channel-links'], { cwd: dirname });
117-
console.log("tx-chain-channel-links target output:", stdout);
119+
const { stdout } = await execa('make', ['tx-chain-channel-links'], {
120+
cwd: dirname,
121+
});
122+
console.log('tx-chain-channel-links target output:', stdout);
118123
} catch (error) {
119124
t.fail(`tx-chain-channel-links failed with error: ${error}`);
120125
}
121126

122127
try {
123-
const { stdout } = await execa('make', ['tx-bec32-prefixes'], { cwd: dirname });
124-
console.log("tx-bec32-prefixes target output:", stdout);
128+
const { stdout } = await execa('make', ['tx-bec32-prefixes'], {
129+
cwd: dirname,
130+
});
131+
console.log('tx-bec32-prefixes target output:', stdout);
125132
} catch (error) {
126133
t.fail(`tx-bec32-prefixes failed with error: ${error}`);
127134
}
128-
}
135+
};
129136

130137
test.before(async t => {
131138
const { setupTestKeys, ...common } = await commonSetup(t);
@@ -135,9 +142,9 @@ test.before(async t => {
135142
console.log('WALLETS', wallets);
136143
t.context = { ...common, wallets };
137144
await startContract(contractName, contractBuilder, commonBuilderOpts);
138-
await setupXcsContracts(t)
139-
await createOsmosisPool(t)
140-
await setupXcsState(t)
145+
await setupXcsContracts(t);
146+
await createOsmosisPool(t);
147+
await setupXcsState(t);
141148
});
142149

143150
test.serial('BLD for OSMO, receiver on Agoric', async t => {
@@ -288,9 +295,9 @@ test.serial('address hook - BLD for OSMO, receiver on Agoric', async t => {
288295
const { balances: agoricReceiverBalances } = await retryUntilCondition(
289296
() => queryClient.queryBalances(wallets.agoricReceiver),
290297
({ balances }) => {
291-
const balancesBeforeAmount = BigInt(balancesBefore[0]?.amount || 0)
292-
const currentBalanceAmount = BigInt(balances[0]?.amount || 0)
293-
return currentBalanceAmount > balancesBeforeAmount
298+
const balancesBeforeAmount = BigInt(balancesBefore[0]?.amount || 0);
299+
const currentBalanceAmount = BigInt(balances[0]?.amount || 0);
300+
return currentBalanceAmount > balancesBeforeAmount;
294301
},
295302
'Deposit reflected in localOrchAccount balance',
296303
);

0 commit comments

Comments
 (0)