full-blockchain-solidity-course-js icon indicating copy to clipboard operation
full-blockchain-solidity-course-js copied to clipboard

Unsupported method: evm_snapshot

Open benduongquangmobile opened this issue 2 years ago • 2 comments

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? Screen Shot 2022-08-12 at 17 25 57

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"]

benduongquangmobile avatar Aug 12 '22 10:08 benduongquangmobile

Do you still need help or figured it out?

br0wnD3v avatar Aug 25 '22 17:08 br0wnD3v

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! :)

krakxn avatar Sep 15 '22 04:09 krakxn