forge-std icon indicating copy to clipboard operation
forge-std copied to clipboard

"Member "sig" is not available in struct StdStorage storage pointer outside of storage" on compiler 0.6.9

Open traceurl opened this issue 2 years ago • 4 comments

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. Screen Shot.

traceurl avatar Aug 02 '22 13:08 traceurl

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 avatar Aug 13 '22 00:08 mds1

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.

ZeroEkkusu avatar Aug 13 '22 12:08 ZeroEkkusu

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 avatar Aug 15 '22 02:08 traceurl

@traceurl so confirmed 0.6.9 bug? can we close this?

brockelmore avatar Aug 15 '22 16:08 brockelmore

@brockelmore Yes, this is a 0.6.9 bug. After updating to 0.6.10, this problem fixed.

traceurl avatar Sep 05 '22 08:09 traceurl