Closed Vulturio closed 3 years ago
Hi, @cryptowea
Thanks for raising this issue, and I promise we'll fix it as soon as possible. Having stated that, let's explain why your compilation failed and what you could do to make it work for now.
Your compilation failed because you're trying to compile eth-vue using a more recent Solidity environment. eth-vue currently runs on Solidity v0.4.18
which runs compilations smoothly, but if you try to compile in say v0.4.23
, you'll get the constructor dep
and other issues.
I have answered the constructor dep
question here, let me do the same here.
For example, since Solidity v0.4.23
, constructors are now specified using the constructor
keyword:
constructor () {}
Just to compare with the old ways, say we have a Smart Contract called Employee
, in the past, you'd specify the contract with its constructor like this:
contract Employee {
// constructor
function Employee() public {
// ...
}
}
But the acceptable way to specify the Employee Smart Contract now is:
contract Employee {
// constructor
constructor() public {
// ...
}
}
Using the name of a contract as its constructor is now deprecated.
SOLUTION:
We'll do an upgrade as soon as possible, and I'll inform you once that's done, but for now, you may have to run eth-vue in a v0.4.18
environment.
Thanks again.
Closing as this issue resolved.
The contrats are not compiling, and the app is not working because the JSON files are not generated.