Questions tagged [truffle]

Questions regarding the implementation and use of the Truffle development and testing environment.

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

How to configure a default parameter for a deployed contract in truffle?

This is a follow-up question to How can I use deployed with a constructor argument For testing purposes with mocha, I would like to configure my default deployed contract so that it is instantiated ...
3
votes
2answers
861 views

Contract deployment workflow with truffle/ether-pudding

I've managed to deploy a contract on geth by unlocking the account of the node. (How this would work in production I have no idea, as I think it would pose a security risk) Now I connect with my ...
2
votes
2answers
763 views

Truffle WebPack problem

I'm trying to use webpack in a truffle project. I follow this guide https://github.com/ConsenSys/truffle/wiki/Using-Truffle-and-Webpack-(beta). At point 8 in my app.js I add this line: var TestRPC =...
2
votes
1answer
146 views

.new() does not work in jQuery click handler

I am using truffle as my Dapp development platform together with testrpc. When I attempt to create a new instance of the my contract using the .new() method, I am having an issue with printing out the ...
2
votes
1answer
513 views

Use Hooked-Web3-Provider and Lightwallet on android app?

I'm trying to make a demo app where I can make an account through the app and store the private key. and simply send a signed transaction and from the app to a hosted blockchain on my computer any ...
6
votes
1answer
504 views

Workflow for Dapp Development

There is so much information out there that turns around this point that I decided to make a post, can someone please help out? Does that sound correct as a work-flow for medium/large size projects ?:...
4
votes
1answer
4k views

Get block address through web3.eth.getBlock(1)

I'm getting a list of the last few blocks like described here. Now I can't seem to get the address of each block or the associated contract, through web3.eth.getBlock. A lot gets returned, but no ...
3
votes
1answer
974 views

How to get the running instance of a Contract

I have a contract with name AuxContract and imported it in my Dapp.sol. In my Dapp.sol I have a variable of type AuxContractwhich I want to initialize with a running instance of an ...
4
votes
1answer
971 views

Truffle Dapp Deployed Contract Access

Which function we need to use in truffle for the communication of second Dapp to the contract deployed on blockchain by first Dapp, because contract deployed by truffle is not accessible by geth node. ...
2
votes
0answers
297 views

How to work with MeteorJS in Truffle?

Truffle has not out of the box support for MeteorJS. Does this mean that meteor is not supported by Truffle? How easy is it to bring it together?
2
votes
0answers
101 views

Get truffle contracts Global Method names

Right now you can access each deployed contract method with Truffle because each is exposed globally. But I need a way to enumerate each contract say like: Object.keys(contracts) But since all ...
9
votes
1answer
669 views

Truffle framework with storage

How can I integrate truffle with swarm or ipfs for permanent document storage? Are there any libraries?
3
votes
0answers
25 views

No event after a struct push in solidity [duplicate]

I am testing a contract with Truffle, which code is : Contribution[] public contributions; struct Contribution { address participantAddress; string name; uint timestamp; uint amount;...
1
vote
1answer
347 views

Storing an address in nested mapping does not work

Why doesn't this work? contract NameRegistry { function NameRegistry() { // names["users"]["stefreak"] = 0x123; } function register(address record, string namespace, string name) returns (...
2
votes
1answer
349 views

Dapp Communication using smart contract written in solidity in truffle framework [duplicate]

How will two Dapps, developed using truffle framework, will communicate with the contract deployed by one Dapp ( Consider testnet using geth)?
5
votes
0answers
167 views

Dapp Development using Truffle framework getting error

I am using truffle framework, which has pudding functionality. I have compiled the same contract on the both Dapps and deployed it on the one Dapp. Now i am trying to access it from another Dapp using ...
1
vote
0answers
192 views

Truffle Dapp Development [closed]

Is there anybody who has developed the Dapp using truffle framework and ethereum testnet ? I am getting some alien errors and i am not getting the solution on internet.So i need a person who has done ...
2
votes
1answer
2k views

How do you send ether using truffle/ether-pudding?

How do you do a sendTransaction to simply send ether from one account to another in ether-pudding? In web3 I would do this: web3.eth.sendTransaction({ from: a, to: b, value: 100 }) I would like the ...
3
votes
1answer
379 views

Did anyone succeed in using Truffle with Node v6?

Truffle looks to be buggy when using with Node v6 (installed from homebrew). There's a ticket on Truffle github, but none seems to take it into account. Are people not using Node v6 or is there a ...
3
votes
1answer
277 views

Truffle Dapp Communication

In truffle, a dapp is deployed using the port of running geth node (in testnet). Then how will another machine node will communicate to that dapp because it is impossible to run a node on same port ...
4
votes
3answers
930 views

Iterating through an array in JS and simple promises (web3/pudding)

This might be more to do with my lack of understanding some JS basics however it's in ethereum/web3 context so here it goes. I have a public array posts in my contract and a global variable in JS of ...
4
votes
1answer
525 views

How do you provide a GasPrice and GasLimit to overcome the “low tx nonce or out of funds” log message

I am getting the following logged by my private chain geth node when running a test in truffle: removed tx ( TX(ff8ec4f713e64fb25df07d153607e29629c9276b57e0b7e331f17b5a3c31fdd1) Contract: ...
2
votes
1answer
315 views

Is it possible to change the coinbase dynamically?

I'm testing the following contract using Truffle framework and deploying on TestRPC network. contract MetaCoin { mapping (address => uint) balances; function MetaCoin() { balances[tx....
6
votes
1answer
2k views

How do I manage unlocking accounts in a test in Truffle

I have a test that exercises a contract function across different accounts. How do I unlock these accounts in the context of the test? contract('MyContract', function (accounts) { it("should ...
6
votes
1answer
611 views

Event.watch gets fired infinitely many times

I am trying out truffle + web3 + ethereumjs-testrpc. In the app I have the following code: window.onload = function() { var meta = MetaCoin.deployed(); var event = meta.Transfer({}, {fromBlock: 0,...
3
votes
1answer
145 views

Migration between frameworks

How much effort would it be to migrate a Dapp written in embark to truffle or vice-versa? Which parts of the code can be preseved (would work in both frameworks)?
6
votes
1answer
865 views

Not enough components (4) in value to assign all variables (6)

This is an exception on compilation I am getting with truffle. The code I am running builds a store from a container contract and then makes a call to get a product from it. Store s = Store(saddress)...