Skip to content

Commit

Permalink
fix: self-review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Aug 31, 2023
1 parent ef59dc3 commit 749a3e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/adapter/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const metaMaskFlaskSupported = async (externalProvider?: any): Promise<bo
return true
}

export const shapeShiftMultichainInstalled = async (snapId: string): Promise<boolean> => {
export const shapeShiftSnapInstalled = async (snapId: string): Promise<boolean> => {
const provider = await getMetaMaskProvider()
if (provider === undefined) {
throw new Error('Could not get MetaMask provider')
Expand Down Expand Up @@ -105,7 +105,7 @@ export const isLocked = async (): Promise<boolean> => {
/**
* Prompt the user to allow the snap
*/
export const enableShapeShiftMultichain = async (
export const enableShapeShiftSnap = async (
snapId: string,
version?: string,
): Promise<EnableShapeShiftMultichainResult> => {
Expand All @@ -120,7 +120,7 @@ export const enableShapeShiftMultichain = async (
}
try {
assert(metaMaskFlaskSupported(), 'Please install MetaMask Flask.')
const snapIsInstalled = await shapeShiftMultichainInstalled(snapId)
const snapIsInstalled = await shapeShiftSnapInstalled(snapId)
if (!snapIsInstalled) {
const res = await walletRequestSnaps(snapId, version)
assert(res.errors?.length === 0, JSON.stringify(res.errors, null, 2))
Expand Down

0 comments on commit 749a3e5

Please sign in to comment.