truffle Questions

2

Solved

I've been working with solidity and truffle for a few days to develop a contract. I'm testing using the network created by Ganache an RPC client for build a local blockchain enviroment. There is on...
Cameleer asked 9/1, 2018 at 12:1

4

Solved

I'm trying to install the package @truffle/hdwallet-provider . As written in the doc, I'm running: npm i @truffle/hdwallet-provider Here is the error message I'm getting: npm ERR! code 128 npm ERR...
Illustrate asked 8/3, 2022 at 14:15

4

I am new to Truffle and going through the Metacoin tutorial; I followed all the steps but when I do truffle compile, I get the following: Error: Failed to fetch the Solidity compiler from the follo...
Champlain asked 14/8, 2022 at 22:51

14

I installed truffle through npm with the following: sudo npm install -g truffle but when I run truffle list on the console it just gives me bash: truffle: command not found
Ereshkigal asked 1/7, 2016 at 14:58

5

Error: Truffle is currently using solc 0.5.16, but one or more of your contracts specify “pragma solidity ^0.8.0” Here is a photo of the error - https://gyazo.com/2f5ea2f50cc1d4ef5eea2f21d0e04fe7 A...
Reconvert asked 21/6, 2021 at 15:1

1

I'm working on a Blockchain project where I use Truffle. when I run the Truffle Console command I face this issue. Complete Log: This version of µWS is not compatible with your Node.js build: Error...
Apologize asked 11/2, 2022 at 14:28

8

I have been running into the specified in the title. I have developed a smart contract and have successfully compiled and deployed it to the network as follows: 1. Run testrpc 2. truffle compile...
Chemotropism asked 8/2, 2018 at 20:24

2

I am trying to install "truffle" with npm, but I am not familiar with NodeJS and cant figure out why npm wont install it. I try npm install -g truffle in Powershell with Admin rights and after a fe...
Loy asked 6/9, 2016 at 21:28

6

Solved

When i tried to install truffle i got these errors :- I have installed Node.js earlier and also i have pip installed. PS C:\Users\pk199\Documents> npm install -g truffle npm ERR! code 1 npm ERR...
Sibilant asked 25/1, 2022 at 2:18

1

Solved

I am trying to save gas by optimize code. In a flash, however, I was wondered what is the best practice of copying from array to array in Solidity. I present two option. One is copying by pointer (...
Thunder asked 10/4, 2022 at 17:53

1

error - node-gyp-build: Permission denied while setting up truffle and ganache with docker on Apple Silicon npm ERR! code 127 npm ERR! path /root/.nvm/versions/node/v17.9.0/lib/node_modules/truffle...
Coper asked 9/4, 2022 at 16:50

2

I want to install ganache-cli and truffle using npm and am getting two types of errors (see codes pasted below). npm config If I run the command npm config, I get the following errors. Could th...
Chalmer asked 24/11, 2019 at 1:51

7

Solved

I'm building a staking function and hitting the following error after giving permission to access my token: "MetaMask - RPC Error: Cannot set properties of undefined (setting 'loadingDefaults...
Diode asked 18/12, 2021 at 16:13

1

Solved

I intend to develop my smart contracts in Hardhat, and to test them on RSK regtest local node. I was able to find a Truffle regtest configuration. development: { host: "127.0.0.1", port...
Whodunit asked 20/1, 2022 at 7:35

2

While I was working on smart contract using truffle, whenever request some number like account balance or address from the truffle console; I receive a BN object which looks like this: BN { negati...
Unhorse asked 12/6, 2021 at 6:16

1

I've commanded npm run dev to run my code. However, it pops up several errors the first error it pops up is Module not found: Error: Can't resolve '../../build/contracts/User.json' I don't know why...
Chophouse asked 21/8, 2019 at 2:33

5

I'm trying to send wei/eth to the address of my solidity contract which have an external payable fallback function. My truffle javascript test below doesn't result in the balance of instance.addres...
Horoscope asked 10/10, 2018 at 13:4

1

Here is the package I would like to use How can I import this in a TypeScript file (without using require) What is the proper syntax? None of these work: import contract from "@truffle/contrac...
Impostume asked 3/12, 2020 at 1:5

2

I've checked that the connect-privkey-to-provider module is in the dependencies. However, it keeps saying Module 'connect-privkey-to-provider' is extraneous npm and cannot find module 'connect-priv...
Influenza asked 20/5, 2019 at 13:25

5

I have written one simple smart contract in solidity and trying to migrate it with truffle. $ truffle migrate Compiling .\contracts\Election.sol... Compiling .\contracts\Migrations.sol... /D/ethe...
Duck asked 30/12, 2018 at 7:58

2

Im trying to integrate web3js with Trezor in a truffle dev network or using ropsten test network. The idea is to sign the transactions using the hardware wallet and then send a raw transaction us...
Sidonius asked 30/5, 2018 at 4:9

1

Solved

I have a solidity function called adopt a dog as below which is bascically a payable function in the contract. // THIS IS FAILING AS I DONT KNOW HOW TO PASS ETHERS IN HARDHAT/ETHER.JS Hardhart con...
Runyan asked 19/6, 2021 at 18:9

4

Solved

I'm currently following this tutorial (https://medium.com/zeppelin-blog/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05) as I try to get into ethereum programming. Step 3 is inter...
Browband asked 8/5, 2017 at 21:19

5

Solved

I'm trying to deploy a contract to the ropsten testnet using truffle, but I get the following error: Deploying 'Migrations' ---------------------- Error: *** Deployment Failed *** "Migratio...
Epicontinental asked 21/3, 2021 at 17:17

5

Can't correct the EACCESS issue from trying to install truffle. Yes I had installed initially npm via sudo and not nvm but that was corrected -unless who knows what- as per web. This path did not...
Allophane asked 14/7, 2019 at 21:48

© 2022 - 2024 — McMap. All rights reserved.