I can't run the start_lottery() function due to error bellow
VirtualMachineError: revert: Ownable: caller is not the ownermodifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; }
where are the possible error causing? I have my PRIVATE_KEY in the .env file and added to the wallet in the brownie-config file
notice the the first function deploy_lottery() is working fine
I can't run the
start_lottery()
function due to error bellowwhere are the possible error causing? I have my
PRIVATE_KEY
in the .env file and added to the wallet in the brownie-config filenotice the the first function
deploy_lottery()
is working fine