Questions tagged [truffle-compile]
The truffle-compile tag has no summary.
111 questions
1 vote
1 answer
136 views
Problems installing truffle
I've installed truffle multiple times, uninstall and installed again, all I get is command not found npm install -g truffle npm WARN deprecated [email protected]: testrpc has been renamed to ganache-cli, ...
1 vote
2 answers
1k views
Facing an error while running "truffle compile"
I'm facing an error while running truffle compile- Error: Failed to fetch the Solidity compiler from the following locations: https://relay.trufflesuite.com/solc/bin/,https://solc-bin.ethereum.org/bin/...
0 votes
1 answer
70 views
Type Error with Function
I have been following a course, and, I followed their code, somehow, when I compile my code, it gave me an error, and the course I followed didn't get an error, somebody help me please. pragma ...
1 vote
0 answers
94 views
Why Solidity no deterministic AST
Question: I read that why recompile all truffle The technical reason is that since Solidity does not produce deterministic ASTs, the plugins are unable to resolve references correctly if they are not ...
2 votes
0 answers
155 views
Truffle compiles different binary than RemixIde, even with same compiler version and evm version
The code: pragma solidity <0.9.0; contract Callee { address public a; address public b; function test(uint256 i) public returns(uint256){ a=address(this); b=msg....
0 votes
0 answers
80 views
Truffle with weird behavior dealing with uint type of variables
I´ve spent a couple weeks try to understanding what was heppening. The same solidity code worked great in REMIX but not in Truffle/Ganache. Let´s me explain. I wrote a code bases on Openzeppelin, but ...
0 votes
1 answer
146 views
unable to install truffle
I'm trying to install truffle on node version 8.9.0 but it shows it has been installed and when I try to do anything on that, throws this error. C:\Users\com\AppData\Roaming\nvm\v8.9.0\node_modules\...
0 votes
1 answer
475 views
Compiler Version not Found After Downloading
When I truffle compile, it says "Error: Could not find a compiler version matching ^0.8.11". I did some research and installed solc (npm install -g [email protected]), but it didn't fix the error. ...
1 vote
2 answers
449 views
Crowdsale - Invalid implicit conversion from contract IERC20 to contract ERC20 requested
I am using ^0.8.0 version of solidity compiler and trying to add crowdsale smart contract pragma solidity ^0.8.0; import "./Crowdsale.sol"; contract MyTokenSale is Crowdsale { ...
1 vote
0 answers
79 views
Truffle-config outputSelection is not working
I'm trying to only select the truffle compile output using the outputSelection JSON config in truffle-config.json. But when I run truffle compile --all, the build JSON files still contains everything. ...
1 vote
2 answers
2k views
Error with "truffle compile" - Could not find a compiler version matching
I keep getting this error: Error: Could not find a compiler version matching ^0.8.0. Please ensure you are specifying a valid version, constraint or build in the truffle config. Run `truffle compile --...
0 votes
1 answer
195 views
Why is "Methods" Always Empty When Building Solidity Smart Contract With Truffle?
When I the ABI for any smart contract it always creates "methods" as just an empty object... it should contain my public and external functions, but it doesn't. When I look at the ABI I don'...
0 votes
1 answer
66 views
Unable to run truffle console
When I'm running the truffle compile cmd getting the prompt "Everything is upto date." ABIS folder is created but the corresponding file related to contacts are not there. Basically, the ...
0 votes
1 answer
156 views
How to fix error of compiling the smart contract: Invalid number of parameters for "undefined"?
I want to compile a simple smart contract using truffle. my smart contract SimpleStorage.sol pragma solidity >=0.4.16 <0.7.0; contract SimpleStorage { int public sensorData; constructor(...
0 votes
1 answer
204 views
ERC721Burnable TypeError: Definition of base has to precede definition of derived contract
I'm getting an error due to Burnable but it's not even in my contract. @openzeppelin/contracts/token/ERC721/ERC721Burnable.sol:12:46: abstract contract ERC721Burnable is Context, ERC721 ...