Questions tagged [truffle]

Development environment, testing framework and asset pipeline for Ethereum

Truffle is a development environment, testing framework and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier. With Truffle, you get:

  • Built-in smart contract compilation, linking, deployment and binary management.
  • Automated contract testing with Mocha and Chai.
  • Configurable build pipeline with support for custom build processes.
  • Scriptable deployment & migrations framework.
  • Network management for deploying to many public & private networks.
  • Interactive console for direct contract communication.
  • Instant rebuilding of assets during development.
  • External script runner that executes scripts within a Truffle environment.

Github Repository

Official Website

1088 questions
-1
votes
2 answers

Truffle Install (WARN deprecated)

`manuelfiestas@Manuels-MBP node_modules % npm install -g truffle npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that. npm WARN deprecated…
Nokio
  • 7
  • 4
-1
votes
1 answer

How to remove this ParserError of contract in solidity language?

I am using the Remix IDE and the followinf code is throwing the error: :browser/tests/project/record.sol:18:21: ParserError: Expected ';' but got '[' address docs[] = new ; pragma experimental ABIEncoderV2; pragma solidity >=0.4.18; contract…
-1
votes
1 answer

ERROR: invalid address (arg="", coderType="address", value=[0])

I am building a token smart contract using truffle and ganache. i was testing the transfer function. Code is in the image below In my token.sol file i created a function name transfer function transfer(address _to, uint _value) public { When i ran…
Iammrjude1
  • 31
  • 1
  • 8
-1
votes
1 answer

How to get a specific account from web3 with version 1.2.x?

In an old version of web3 web3.eth.accounts[0] returns a sepcific account. I used it as a parameter for the vote function like this: app.vote(1, { from: web3.eth.accounts[0]}) Since version 1.2.x web3 uses web3.eth.getAccounts() to return a list of…
-1
votes
1 answer

windows 10 - npm i @truffle/contract

Can't install truffle contracts, see Error 1. ERROR 1: C:\Vote>npm i @truffle/contract npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno ENOENT npm ERR! enoent Error while executing: npm ERR! enoent undefined…
metaspoite
  • 23
  • 3
-1
votes
2 answers

How to unlock a contract address in ganache/truffle/web3 so that I can use it as from to call a function?

I am building an altcoin contract using zeppelin library to make it upgradeable using a proxy. I also use a Ownable cotract that allows me to pass ownership to another address in 2 phases. Transfer Ownership with the address as param and Claim…
-1
votes
1 answer

truffle installation issue "-bash : truffle: command not found"

i am trying to set up the environment for developing dapps on my mac using https://medium.com/tomochain/how-to-build-a-dapp-on-tomochain-85532a1192e7 tutorial. upon installing truffle, i am unable to use truffle commands from project directories. i…
-1
votes
1 answer

issues deploying solidity smart contract to rinkeby test network

I'm using openZeppelin to make a crowdsale contract, all (30 of them) my tests pass with flying colours ;) and I can migrate on a locall ganache blockchain no problem. When I try to deploy to rinkeby I start having issues. My config in truffle.js…
amlwwalker
  • 3,161
  • 4
  • 26
  • 47
-1
votes
1 answer

Why do I get an unhandled error about gas limit when deploying this contract

I am trying to deploy a contact using below code on rinkeby test net: const result = await new web3.eth.Contract(JSON.parse(interface)) .deploy({data: bytecode, arguments: [100, accounts[0]]}) .send({gas: 1000000, from:…
user3289405
  • 127
  • 1
  • 9
-1
votes
1 answer

error while running command truffle init

I am new to smart contract programming, recently installed truffle using npm on Node(9.11.1) When I run the command truffle init first time, I received this error: Error: Cannot find module 'original-require' at Function.Module._resolveFilename…
Saurabh
  • 1
  • 2
-1
votes
2 answers

How does EOS deployed their token contract?

I want to create a crowdsale token contract similar to EOS. I am new to crowdsale token contract. I get the source code from etherscan.io. They are EOSTokenContract, EOSCrowdsale, EOS-Owner. I want to know how did they deployed their smart contract.…
Tony Tang
  • 11
  • 4
-1
votes
1 answer

Good solidity smart contract tutorials, videos, examples

I am looking for a good resource for solidity advanced smart contracts development free resource or books. Scenarios like - Crowdsale - Insurance sector - Banking I have done some research on Open Zepplin which is a good resource for smart contracts…
-2
votes
1 answer

how to setup basic environment for react and smart contract deployment

how to setup basic environment for react and smart contract deployment I am not able to setup environment for below tech stack basic environment for truffle , solidity ,react app on vs code
-2
votes
1 answer

How to get to previous deployment in truffle

So I deployed an application twice. But i just want to make changes to first one. So how to do that? This is my summary: Summary ======= > Total deployments: 2 > Final cost: 0.003708932511868584 ETH
Jan Tuđan
  • 233
  • 3
  • 17
-2
votes
2 answers

Why using Solidity programming language to test smart contracts written in Solidity is not a good idea?

I am trying to use truffle, whereby truffle clearly states that you can use its testing functionalities to allow you to use solidity programming languages to test solidity contracts. Online, however, many developers use Mocha and Chai. Hence,…
rsc05
  • 3,626
  • 2
  • 36
  • 57
1 2 3
72
73