Closed lookfwd closed 6 years ago
emit
is a keyword introduced in solidity 0.4.21
. The contracts have only been tested with solc 0.4.19
. I think eventually we would upgrade, but for now it has to work with other tools (like solidity-coverage
and solium
).
Please avoid using the global truffle. Use the installed truffle with npx truffle
.
I just noticed that it says run truffle migrate
in README. We should probably change that.
erm.... this is not a good developer first experience. did sol compiler just make a breaking change? not sure my next steps. how does one add an "emit" prefix then?
OwnershipTransferred(owner, newOwner, emit); /* ?????? */
emit OwnershipTransferred(owner, newOwner);
(see https://github.com/ConsenSys/Linnia-Smart-Contracts/pull/19)
but not big deal - it's backwards compatible - just ignore the warning. Note that solidity is constant work in progress... :) i.e. things always change.
In the latest truffle (v4.1.5) // MacOS 10.13 , node v8.9.1