Is it possible to access a library constant in a contract that imports the library?
I am using solidity 0.4.11
For instance:
library Lib {
bytes1 constant flag = 0x01
...
}
separate file
import Lib
contract A {
bytes1 x = (I have tried Lib.flag, and flag, neither works)
}
Trying to use Lib.flag
, I get Member "flag" not found or not visible after argument-dependent lookup in type(library Lib)
.
Trying to use flag
, I get Undeclared identifier
.