File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
modules/delegates/helpers Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ export async function getDelegateContractAddress(
13
13
contracts : EthSdk ,
14
14
address : string
15
15
) : Promise < string | undefined > {
16
- const voteDelegateAdress = await contracts . voteDelegateFactory . delegates ( address ) ;
17
- const v1VoteDelegateAddress = await contracts . voteDelegateFactoryOld . delegates ( address ) ;
18
- return v1VoteDelegateAddress !== ZERO_ADDRESS
19
- ? v1VoteDelegateAddress
20
- : voteDelegateAdress !== ZERO_ADDRESS
21
- ? voteDelegateAdress
16
+ const voteDelegateAddress = await contracts . voteDelegateFactory . delegates ( address ) ;
17
+ const voteDelegateAddressOld = await contracts . voteDelegateFactoryOld . delegates ( address ) ;
18
+ return voteDelegateAddressOld !== ZERO_ADDRESS
19
+ ? voteDelegateAddressOld
20
+ : voteDelegateAddress !== ZERO_ADDRESS
21
+ ? voteDelegateAddress
22
22
: undefined ;
23
23
}
You can’t perform that action at this time.
0 commit comments