Skip to content

Commit

Permalink
fix: method naming
Browse files Browse the repository at this point in the history
  • Loading branch information
leoslr committed Feb 22, 2022
1 parent 5d5a9e9 commit ac78383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/payment-processor/src/payment/conversion-erc20.ts
Expand Up @@ -27,7 +27,7 @@ export async function approveErc20ForProxyConversionIfNeeded(
overrides?: ITransactionOverrides,
): Promise<ContractTransaction | void> {
if (
!(await hasErc20AllowanceForProxyConversion(
!(await hasErc20ApprovalForProxyConversion(
request,
ownerAddress,
paymentTokenAddress,
Expand All @@ -52,7 +52,7 @@ export async function approveErc20ForProxyConversionIfNeeded(
* @param signerOrProvider the web3 provider. Defaults to Etherscan.
* @param minAmount ensures the approved amount is sufficient to pay this amount
*/
export async function hasErc20AllowanceForProxyConversion(
export async function hasErc20ApprovalForProxyConversion(
request: ClientTypes.IRequestData,
ownerAddress: string,
paymentTokenAddress: string,
Expand Down

0 comments on commit ac78383

Please sign in to comment.