ds-note icon indicating copy to clipboard operation
ds-note copied to clipboard

Compilation fails with solc 0.5.8

Open elenadimitrova opened this issue 5 years ago • 1 comments

Error:

/lib/dappsys/stop.sol:33:34: TypeError: This modifier uses "msg.value" or "callvalue()" and thus the function has to be payable or internal.
    function start() public auth note {
                                 ^--^
/lib/dappsys/note.sol:36:20: "msg.value" or "callvalue()" appear here inside the modifier.
            wad := callvalue
                   ^-------^

elenadimitrova avatar May 17 '19 14:05 elenadimitrova

Yes it is a known issue with compilers > 0.5.6. We are probably removing the callvalue soon.

gbalabasquer avatar May 17 '19 14:05 gbalabasquer