Skip to content

Commit

Permalink
fix typo; fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
haseebrabbani committed Nov 17, 2021
1 parent d1dbcc3 commit 2a5b933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/commands/publish/upload.image.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import shelljs from "shelljs"
import prompts from "prompts"
import { assertExists, assertIsNonEmptyString, assertShellResult } from "../../utils"
import { assertExists, assertIsNonEmptyString, assertShellResult, isAppleM1 } from "../../utils"

// uploads agent image to repository and returns image reference
export type UploadImage = () => Promise<string>
Expand Down
2 changes: 1 addition & 1 deletion sdk/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getJsonRpcUrl = () => {

// else, use the rpc url from forta.config.json
const { jsonRpcUrl } = getFortaConfig()
if (!jsonRpcUrl) throw new Error('no jspnRpcUrl found')
if (!jsonRpcUrl) throw new Error('no jsonRpcUrl found')
if (!jsonRpcUrl.startsWith("http")) throw new Error('jsonRpcUrl must begin with http(s)')
return jsonRpcUrl
}
Expand Down

0 comments on commit 2a5b933

Please sign in to comment.