Skip to content

Commit

Permalink
Merge pull request #32 from gnosis/final-mastercopies
Browse files Browse the repository at this point in the history
minor tooling fixes
  • Loading branch information
samepant authored Jan 3, 2024
2 parents a6b4621 + 8cff1ea commit 391ca03
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

1 comment on commit 391ca03

@vercel
Copy link

@vercel vercel bot commented on 391ca03 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.