Replies: 1 comment 7 replies
-
Could you please paste the code as text and format the whole block with <> as source code. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I have an issue with an error that I do not understand : brownie.exceptions.VirtualMachineError: revert
Here is my code and the error message :
`//SPDX-License-Indentifier: MIT
pragma solidity ^0.6.6;
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Lottery {
}`
`from brownie import Lottery, accounts, config, network
from web3 import Web3
def test_get_entrance_fee():
account = accounts[0]
lottery = Lottery.deploy(
config["networks"][network.show_active()]["eth_usd_price_feed"],
{"from": account},
)
assert lottery.getEntranceFee() > Web3.toWei(0.015, "ether")
assert lottery.getEntranceFee() < Web3.toWei(0.019, "ether")`
`dependencies:
compiler:
solc:
remappings:
networks:
mainnet-fork:
eth_usd_price_feed: '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419'
`
Beta Was this translation helpful? Give feedback.
All reactions