Skip to content

Commit

Permalink
minor tooling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Jan 3, 2024
1 parent a6b4621 commit 8cff1ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"search.exclude": {
"**/.yarn": true,
Expand Down
14 changes: 9 additions & 5 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ import { HardhatUserConfig, HttpNetworkUserConfig } from "hardhat/types"
dotenv.config()
const {
INFURA_KEY,
PK,
MNEMONIC,
ETHERSCAN_API_KEY,
GNOSISSCAN_API_KEY,
POLYGONSCAN_API_KEY,
} = process.env
const DEFAULT_MNEMONIC =
"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"

const sharedNetworkConfig: HttpNetworkUserConfig = {}

sharedNetworkConfig.accounts = {
mnemonic: MNEMONIC || DEFAULT_MNEMONIC,
if (PK) {
sharedNetworkConfig.accounts = [PK]
} else {
sharedNetworkConfig.accounts = {
mnemonic:
MNEMONIC ||
"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat",
}
}

const { INTEGRATION_TEST } = process.env
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/deploy/deployERC721TokenboundMech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ERC6551_REGISTRY_ADDRESS,
} from "../constants"

import { deployMastercopy, erc6551ProxyBytecode } from "./factory"
import { erc6551ProxyBytecode } from "./factory"

export const calculateERC721TokenboundMechAddress = (context: {
/** Address of the ERC721 token contract */
Expand Down

0 comments on commit 8cff1ea

Please sign in to comment.