Questions tagged [truffle-compile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
768 views

Is it OK to use the reset flag with every Truffle compile and migrate when using the TestRPC client?

I just spent a fair amount of time scratching my head trying to figure out why my truffle migration wasn't doing anything when trying to deploy to the TestRPC client. It just kept saying "using ...
1
vote
1answer
62 views

Trouble deploying Ethereum contract to live network (Truffle)

When trying to deploy to the Ethereum main net I am getting the error: Deploying Migrations... ... undefined Error encountered, bailing. Network state unknown. Review successful ...
1
vote
1answer
368 views

Solidity Array Element Access

In Truffle's pet-shop tutorial. Adoption.sol is -- pragma solidity ^0.4.19; contract Adoption { address[16] public adopters; // Adopting a pet function adopt(uint petId) public returns (...
1
vote
2answers
2k views

How do you compile a contract that uses Open Zeppelin's Standard Token in Truffle?

Compiling is failing. vi contracts/MyCoin.sol: pragma solidity ^0.4.18; import 'zeppelin-solidity/contracts/token/ERC20/StandardToken.sol'; contract MyCoin is StandardToken { string public name =...
0
votes
3answers
2k views

I can't run truffle commands in powershell Ise

I am looking around for questions similar to mine but basically I cannot run any truffle commands in the powershell Ise ONLY. I can make it run on the node.js command line. example: > PS C:\Users\...
0
votes
1answer
204 views

Oraclize code not compiling using TRUFFLE COMPIL

I am trying to compile below mentioned code (taken from Oraclize documents) using TRUFFLE but am getting compilation error saying : 'Cannot parse one.sol: Unexpected token p in JSON at position 0'. ...
1
vote
0answers
325 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 ...
1
vote
1answer
694 views

Truffle Compile Error (Invalid input source specified, Compilation Failed)

When I run truffle compile, it throws the following error: Invalid input source specified.
0
votes
1answer
74 views

How Do I Compile a Smart Contract from GitHub?

Our Smart Contract developer has provided our smart contract repo via GitHub The GitHub repo has the following folders: -keys -scripts -src And these files: -.gitignore -Disclaimer.md -LICENSE -README....
1
vote
1answer
462 views

Getting async/await to work in truffle JS tests

I see many examples are happily using async/await in their JS tests, but it looks like mine doesn't seem to be using ES8? I'm not sure how to check. I installed truffle using "npm install truffle" ...
0
votes
2answers
157 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 ...
4
votes
2answers
1k views

How to import a smart contract on github in a truffle contract?

I am using a smart contract that imports and uses the Oraclize contract at https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.4.sol, if in the remix editor this can be done as follows: ...
1
vote
1answer
337 views

Truffle “TypeError: Cannot read property 'legacyAST' of undefined”

I had just finished editing what seems like the last of my error in my contracts because truffle will get to the last contract I have to compile, hangs for a second and the does this: Compiling ./...
1
vote
1answer
239 views

Error on Truffle console - “missing ) after argument list”

while declaring a variable in truffle console error popped up. Code:- var ss undefined truffle(development)> ScoreStore.deployed().then(function(deployd){ss=deployed;}); SyntaxError: missing ) ...
1
vote
1answer
680 views

Truffle Compile on Windows “Could not find a suitable configuration file” [duplicate]

I am trying to do a simple Truffle Compile on window 10 using git bash but i keep getting "Could not find a suitable configuration file" I have tried "Truffle Compile" after running truffle init. I ...
1
vote
1answer
585 views

failure to verify truffle compiled contract on ropsten.etherscan.io

Recently just pushed my first smart contract from truffle to the ropsten testnet. As you can see from my terminal output below it compiles and was migrated with no problem: Was broadcast to the ...