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
1 answer

Scripts to deploy and interact with smart contract in remix

I'm building a smart contract in solidity and using remix plugging for VSCode to deploy and test the same. I have a local network using ganache, and connecting remix to it (http://127.0.0.1:8545) to deploy my contract and test. Problem is every time…
Kural Manivannan
  • 55
  • 1
  • 1
  • 10
-1
votes
1 answer

Truffle not calling the function in past time

I was writing writing some unit testing code for my vesting smart contract in truffle, when I encountered a problem, I had a function which was getting time as one of its parameters so instead of providing it with a manual time I was calculating the…
-1
votes
1 answer

I have run into an error with my testing, i have compiled and migrated . i ran 'truffle test' and i have this error

const {assert} = require ('chai') // const { Item } = require('react-bootstrap/lib/Breadcrumb') const KryptoBird = artifacts.require('./KryptoBird'); // check for chai require('chai') .use(require('chai-as-promised')) .should() contract…
-1
votes
1 answer

Unable to install Ganache

Unable to install Ganache, because of Truffle certificate expired enter image description here
-1
votes
1 answer

Unexpected token issue in truffle on Windows

I am trying to install truffle on node version 8.9.0 and npm version 5.5.1. It got installed but am not able to do anything in that. every time I try any command, even try to unbox it shows an…
-1
votes
1 answer

I am finding it difficult to initialize package.json file in my truffle project

I can not install package.json dependencies in my truffle project and I have tried touch.json. it's giving me errors. I have also tried truffle init, but it is not working.
-1
votes
2 answers

Getting a error when installing TRUFFLE on windows

I have tried installing truffle on windows powershell with Execution Policy set to "ByPass". And installing a older version but noting has worked any help is appreciated. I have node v16.13.0. And have not had any problems before with installing…
-1
votes
1 answer

What do i need to use to make a website like etherscan?

I want to make a website like etherscan which can search for smart contracts or balance of ETH wallet. Now I am using truffle, ganache, web3.js, React, metamask to practice ethreum blockchain, and got a little bit of concept of it. My next goal is…
Emily
  • 1
  • 2
-1
votes
1 answer

'..' is not recognized as an internal or external command, operable program or batch file. (lite-server)

I am following this truffle pet-shop tutorial When i try npm run dev i get the following error message: > pet-shop@1.0.0 dev > ../../../Desktop/BlockchainTechnology/pet-shop-tutorial/node_modules/.bin/lite-server '..' is not recognized as an…
Jesper Hustad
  • 172
  • 2
  • 5
-1
votes
3 answers

truffle init truffle : File C:\Users\PC-Name\AppData\Roaming\npm\truffle.ps1 cannot be loaded because running scripts is disabled on this system

`PS H:\BlockChain\dev\VS Code\ethereum\web> truffle init truffle : File C:\Users\PC-NAME\AppData\Roaming\npm\truffle.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at…
-1
votes
2 answers

image suddenly not loading anymore

I am working on decentragram. This was working fine a few days ago but now image not load anymore. Giving error as bafybeieq6nyhu7ilorb7dxepo6sexab6oqigkjhzc62dxio6x5xaurge7u.ipfs.infura-ipfs.io/:1 GET…
Jnilj
  • 51
  • 5
-1
votes
1 answer

How to get fields and invoke methods of js objects, from java, in Graal-JS?

I have been using GraalVM to execute Javascript from java. But i have a problem: I don't know how to get fields or invoke methods of a js object from java. This is my code, java: public static class JavaMethods { public void printWidthOf(Object…
user17034580
-1
votes
1 answer

Provided address undefined is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted

When I use web3.fromWei(web3.eth.getBalance(web3.eth.accounts[0]), "ether").toNumber() it should get the balance of accounts[0] which is the coinbase but what I get is "Provided address undefined is invalid, the capitalization checksum test…
-1
votes
2 answers

Truffle is not compiling neither is it rather gives error "Cannot find module"

Error: Cannot find module 'babel-register' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at…
Soyaya
  • 1
-1
votes
1 answer

How can you use a named volume to share files between containers and also bind mount the volume to two separate local machine folders in Docker?

I have two local folders, the content of both is bind mounted into their own containers. I also have the same named volume mounted to both in attempt to share files between containers while also bind mounting to local folders and keeping them up…