Skip to main content

Questions tagged [truffle-compile]

The tag has no usage guidance.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
142 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....
aj3423's user avatar
  • 251
2 votes
0 answers
183 views

Is it possible to create a button "connect to wallet"?

I'm learning web3 and blockchain in general. I'd like to create a button that says "connect to wallet " in order to connect with metamask wallet, but I do not know if 1- I need to connect ...
Loui's user avatar
  • 71
2 votes
1 answer
2k views

what is 'UnimplementedFeatureError: Not yet implemented - FixedPointType' error?

what is 'UnimplementedFeatureError: Not yet implemented - FixedPointType' error in solidity while compiling through truffle ? How to fix it ? Using solidity compiler version - 0.5.9
YaSh Chaudhary's user avatar
1 vote
1 answer
99 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, ...
ByteCypher's user avatar
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/...
Aryan Raj's user avatar
1 vote
0 answers
86 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 ...
Zainan Victor Zhou's user avatar
1 vote
1 answer
332 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 { ...
Mariia Synelnyk's user avatar
1 vote
0 answers
73 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. ...
ibaralf's user avatar
  • 111
1 vote
1 answer
813 views

Running Truffle Compiler, Babel-register missing

I fixed my truffle config file so it's working properly require('babel-register'); require('babel-polyfill'); require('dotenv'); config(); module.exports = { networks: { development : { ...
Kaleb Amarante's user avatar
1 vote
0 answers
73 views

Interacting with contracts on Solidity 0.4.* and Solidity 0.5.* in Truffle v5

I have a big contract (A) that is built using Solidity 0.4.25. I also want to build several contracts (B) that will talk to (A), but they will be built using Solidity 0.5.*. As I understand, I will ...
Dziugas's user avatar
  • 141
1 vote
1 answer
112 views

Truffle console no compile or init options

While using truffle.cmd console I tried to use the compile option, or even init. These options are not available, so I cannot compile using console. truffle(development)> .help .break Sometimes ...
user3483902's user avatar
1 vote
0 answers
40 views

truffle can not build success

when I fllow this document step by step enter link description here,I have something wrong with my truffle build,and I delete truffle.js ,this is photo, please help thx!!
Lee's user avatar
  • 11
1 vote
1 answer
176 views

Can an ABI file be made from separate json files by stripping out information?

I am looking at the CryptoKitties KittyCore contract. What I notice is that there are multiple contracts within the file. (https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code)....
Jeff's user avatar
  • 213
1 vote
0 answers
599 views

Truffle (4.0) test multiple contracts

I'm trying to test a contract that wrote and compiled, and I need to use another deployed contract to test it. I am writing a test for a specific contract and trying to invoke another deployed ...
rhlsthrm's user avatar
  • 425
0 votes
0 answers
7 views

Smart contract is compiled but not deployed to ganache

I am developing a DAO Dapp, but when I run truffle migrate --reset, the contract compiles but does not get deployed to Ganache. There are no deployment details shown in the console, and the contract ...
Ahmad Faraz's user avatar
0 votes
0 answers
107 views

abortHandshake(this, req, `Unexpected server response: ${res.statusCode}`);

truffle migrate --network sepolia Compiling your contracts... Everything is up to date, there is nothing to compile. /mnt/c/pr0/bootcamp-completed/node_modules/ws/lib/websocket.js:542 abortHandshake(...
Soyaya's user avatar
  • 31
0 votes
0 answers
63 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 ...
p3cardoso's user avatar
0 votes
1 answer
100 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\...
Prabhat Dongare's user avatar
0 votes
1 answer
436 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. ...
Josh D's user avatar
  • 3
0 votes
1 answer
141 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(...
Helo's user avatar
  • 1
0 votes
0 answers
177 views

In my solidity file I have a parser Error but the line where truffle tells me the error has occurred is blank

I am building out a token and while testing using truffle my file failed to compile. pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; contract Token { ...
Devin's user avatar
  • 1
0 votes
1 answer
328 views

Truffle Compile Fails with Error " Expected pragma, import directive or contract/interface/library/struct/enum/constant/function definition"

When running truffle compile in the root directory of my project I get the following error: ParserError: Expected pragma, import directive or contract/interface/library/struct/enum/constant/function ...
Conscious Nova's user avatar
0 votes
0 answers
26 views

Received DeclarationError when calling other contracts file name and its function

So I created 2 contracts where the first one will be the app logic contract and the other one is the database contract. So I tried to "truffle compile" my contract but receive ...
Muhammad Raffiq Mohd Khalil's user avatar
0 votes
0 answers
468 views

TypeError: Cannot read property '0' of undefined AND TypeError: eventAdded.watch is not a function

I'm currently trying to test run source code from GitHub based on a 2018 tutorial where solidity was using version 0.5.16. I'm currently using truffle v4.1.14. Appreciate any help. Thanks! In the ...
Lionel Lim's user avatar
0 votes
0 answers
168 views

Compile error. Fallback function error

I use pragma 0.6.2. I am trying copile in truffle code which contain this lines: fallback() external payable{} I an getting error: The payable fallback function is defined here. fallback() external ...
Guest's user avatar
  • 11
0 votes
1 answer
969 views

Compilation Error

Hi guys I got this error when I try to compile using truffle develop. truffle(develop)> compile Compiling your contracts... Compiling ./contracts/StarNotary.sol /mnt/d/Blockchain/...
Sreesankar G Warrier's user avatar
0 votes
0 answers
2k views

TypeError: Operator != not compatible with types string storage ref and int_const 0

Im using blockchain technology for the first time, for a college project. Im trying to run a smart contract from Github (in Powershell windows 10). Im unable to compile the contract due the following ...
sweet archita's user avatar
0 votes
1 answer
413 views

Im getting the following error: ParserError: Expected primary expression. struct ManagingOrder.Parking memory new_Parking = Parking({

Im using blockchain technology for the first time, for a college project. Im trying to run a smart contract from Github. After debugging the errors shown while compiling the smart contract (in ...
sweet archita's user avatar
0 votes
0 answers
479 views

solc command is generating empty .bin files

Firstly, this is not an inheritance problem like in this post I have the following two files ( ManagedWallet.sol & ManagedWalletLookup.sol ) pragma solidity ^0.4.24; contract ...
Dar K's user avatar
  • 35
0 votes
0 answers
477 views

Struct Mapping: DeclarationError: Identifier not found or not unique for

Using openzepplin version 2.0.0 and solc version 0.5. I am writing an ERC721 token contract on truffle. Truffle compiles with no error on solc 0.4.23. I had to upgrade to 0.5 due to openzepplin ...
Sagar Atalatti's user avatar
0 votes
0 answers
1k views

FATAL ERROR: Rebalance Allocation failed - process out of memory

So while running truffle compile for my contracts on AWS Ubuntu server I got the following error: <--- Last few GCs ---> [17055:0x3985730] 11958 ms: Scavenge 511.7 (553.4) -> 506.9 (553.4) ...
Gagan's user avatar
  • 433
0 votes
0 answers
95 views

Truffle contract compilation from STDIN or something like this

My contracts have some methods that used only for testing i.e. exposes some internal contract data and I do not want to deploy it to live network. for now Solidity does not supports C-style ...
Alex G.P.'s user avatar
  • 1,277
0 votes
0 answers
133 views

Help on key.json file

Dears, I am getting the below error while trying to compile the contract. ~/Desktop/TstToken$ truffle compile TypeError: Cannot read property 'kdf' of undefined at Function.Wallet.fromV3 (/home/...
febin k paul's user avatar
0 votes
2 answers
189 views

Problem with smart contract deployment

I have compiled test crowdsale smart contract with inheriting from other contracts( like TestToken is MintableToken). The main smart contract consists only of one file, where I described all ...
Сергей Романов's user avatar