Skip to content

Commit

Permalink
chore: style
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Sep 8, 2023
1 parent dfd2d4f commit 6e9d8bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/hubpool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@ async function run(argv: string[]): Promise<number> {

if (require.main === module) {
run(process.argv.slice(2))
.then(async (result) => {
.then((result) => {
process.exitCode = result;
})
.catch(async (error) => {
.catch((error) => {
console.error("Process exited with", error);
process.exitCode = NODE_APP_ERR;
});
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function resolveHubChainId(spokeChainId: number): number {
* @param contractName Name of the deployed contract.
* @returns ethers Contract instance.
*/
export async function getContract(chainId: number, contractName: string): Promise<Contract> {
export function getContract(chainId: number, contractName: string): Contract {
const hubPoolChainId = resolveHubChainId(chainId);

const contract = getDeployedContract(contractName, hubPoolChainId);
Expand All @@ -129,7 +129,7 @@ export async function getContract(chainId: number, contractName: string): Promis
* @returns SpokePool contract instance.
*/
export async function getSpokePoolContract(chainId: number): Promise<Contract> {
const hubPool = await getContract(chainId, "HubPool");
const hubPool = getContract(chainId, "HubPool");
const spokePoolAddr = (await hubPool.crossChainContracts(chainId))[1];

const contract = new Contract(spokePoolAddr, contracts.SpokePool__factory.abi);
Expand Down

0 comments on commit 6e9d8bc

Please sign in to comment.