Skip to content

Commit

Permalink
Core: Remove redudant import
Browse files Browse the repository at this point in the history
  • Loading branch information
PJColombo committed Nov 12, 2021
1 parent c882d69 commit 095d1ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/connect-core/src/utils/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { utils as ethersUtils, utils } from 'ethers'
import { utils as ethersUtils } from 'ethers'

import { Abi, AppMethod } from '../types'
import { ErrorInvalid } from '../errors'
Expand Down Expand Up @@ -94,7 +94,7 @@ export function findAppMethodFromData(
if (appMethod?.abi) {
const inputTypes = appMethod.abi?.inputs.map(({ type }) => type)

appMethod.params = [...utils.defaultAbiCoder.decode(inputTypes, `0x${data.slice(10)}`)]
appMethod.params = [...ethersUtils.defaultAbiCoder.decode(inputTypes, `0x${data.slice(10)}`)]
}

return appMethod
Expand Down

0 comments on commit 095d1ac

Please sign in to comment.