juanfranblanco / vscode-solidity

Visual Studio Code language support extension for Solidity smart contracts in Ethereum https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity
MIT License
871 stars 187 forks source link

vm.prevrandao report error in vscode #451

Open xcaptain opened 3 months ago

xcaptain commented 3 months ago

image

the error log is:

Member "prevrandao" not found or not visible after argument-dependent lookup in contract Vm.(9582)

The vm.prevrandao actually works, I can run forge build; forge test, I think the extension reported the error by mistake