jamiew / ohmfork-autoclaim

automatically claim and restake vested bonds (mints) from SnowbankDAO, KlimaDAO, Wonderland, and other OlympusDAO forks
42 stars 18 forks source link

does this work? #7

Closed sroberson closed 2 years ago

sroberson commented 2 years ago

How does this work? I'm trying this but it fails:

yarn run v1.22.15
$ yarn hardhat run --network polygon scripts/klimadao/stats.ts 
$ /Users/meebo/work/personal/ohmfork-autoclaim/node_modules/.bin/hardhat run --network polygon scripts/klimadao/stats.ts
HardhatError: HH700: Artifact for contract "KlimaToken" not found.
    at Artifacts._getArtifactPathFromFiles (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/hardhat/src/internal/artifacts.ts:391:13)
    at Artifacts._getArtifactPath (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/hardhat/src/internal/artifacts.ts:316:17)
    at Artifacts.readArtifact (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/hardhat/src/internal/artifacts.ts:49:26)
    at getContractAt (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:271:22)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
jamiew commented 2 years ago

Ah my bad, looks like a bad merge. Will revisit