full-blockchain-solidity-course-js
full-blockchain-solidity-course-js copied to clipboard
Unsupported method: evm_snapshot
Lesson
Lesson 7
Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
https://youtu.be/gyMwXuJrbJQ?t=44228
Operating System
macOS (Apple Silicon)
Describe the bug
Hi, I'm trying to run staging test after deploy contract, but it show this error
Can anyone tell me what is going on?
import { DECIMALS, INITIAL_ANSWER } from "./../helper-hardhat-config"
import { network } from "hardhat"
import { developmentChains } from "../helper-hardhat-config"
import { HardhatRuntimeEnvironment } from "hardhat/types"
export default async ({
getNamedAccounts,
deployments,
}: HardhatRuntimeEnvironment) => {
try {
const { deployer } = await getNamedAccounts()
const { deploy, log } = deployments
if (developmentChains.includes(network.name)) {
log("Local networking detected! deploy mocks...")
await deploy("MockV3Aggregator", {
contract: "MockV3Aggregator",
from: deployer,
log: true,
args: [DECIMALS, INITIAL_ANSWER],
// @ts-ignore
waitConfirmations: network.config.blockConfirmations || 1,
})
log("Mocks deployed!")
log(
"--------------------------------------------------------------------------------"
)
}
} catch (error) {
console.log("error", error)
process.exitCode = 1
}
}
export const tags = ["mocks", "all"]
Do you still need help or figured it out?
You should create a discussion and close the issue as it is irrelevant here (does not seem like a code bug).
You can always re-open this if discussions do not help! :)