Skip to content

Commit

Permalink
Use more consistent names (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
hernandoagf authored Oct 29, 2024
1 parent ff81f06 commit f914847
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/delegates/helpers/getDelegateContractAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export async function getDelegateContractAddress(
contracts: EthSdk,
address: string
): Promise<string | undefined> {
const voteDelegateAdress = await contracts.voteDelegateFactory.delegates(address);
const v1VoteDelegateAddress = await contracts.voteDelegateFactoryOld.delegates(address);
return v1VoteDelegateAddress !== ZERO_ADDRESS
? v1VoteDelegateAddress
: voteDelegateAdress !== ZERO_ADDRESS
? voteDelegateAdress
const voteDelegateAddress = await contracts.voteDelegateFactory.delegates(address);
const voteDelegateAddressOld = await contracts.voteDelegateFactoryOld.delegates(address);
return voteDelegateAddressOld !== ZERO_ADDRESS
? voteDelegateAddressOld
: voteDelegateAddress !== ZERO_ADDRESS
? voteDelegateAddress
: undefined;
}

0 comments on commit f914847

Please sign in to comment.