forge-std
forge-std copied to clipboard
"Member "sig" is not available in struct StdStorage storage pointer outside of storage" on compiler 0.6.9
Hi guys, I encountered this error when testing my contract using forge-std. My contract was written in solidity 0.6.9
Compiler run failed
lib/forge-std/src/Test.sol:92:9: TypeError: Member "sig" is not available in
stdstore
^ (Relevant source part starts here and spans across multiple lines).
And here is where the error pops out, in forge-std/src/Test.sol, line 117 and line 92.
.
Are you seeing an error when compiling, or just in the VSCode tooltip? I suspect it may just be an issue with VSCode/the extension
I think this may be a bug in Solidity 0.6.9
.
This is the release announcement for 0.6.10
- they recommend upgrading to 0.6.10
anyway, as 0.6.9
is only one week older.
Are you seeing an error when compiling, or just in the VSCode tooltip? I suspect it may just be an issue with VSCode/the extension
@mds1 In compiling
@traceurl so confirmed 0.6.9 bug? can we close this?
@brockelmore Yes, this is a 0.6.9 bug. After updating to 0.6.10, this problem fixed.