Category "truffle"

How to get one value from struct of array in solidity?

I want to get the value that is inside of struct in Solidity, but I have no idea how to get it. pragma solidity >=0.4.21 <0.6.0; contract PlaceList {

Do you need a web server to run a production build of a react app on a VPS?

I have built a react app using a truffle box that uses create-react app. I can get the app running on my local host but I can't see it on my VPS when I go to th

Truffle Installation Error in "nodejs version 8.10.0" npm version "3.5.2"

I have been trying to install truffle in my Ubuntu 18.04 machine with nodejs version 8.10.0 and npm version 3.5.2, but it shows the error as below. loadDep:orig

React with Truffle contract- Resources must be listed in the web_accessible_resources manifest

I am developing a React app with Truffle and when I call the function from the contract I get the following error: Uncaught (in promise) DOMException: Failed to

React: Module not found: Can't resolve 'xmlhttprequest'

I'm getting an error when trying to build my React project: ./node_modules/ethers/utils/web.js Module not found: Can't resolve 'xmlhttprequest' in '/mnt/c/User

GraalVM Java on truffle - NullPointerException from NFIContext.getBackend when executing Java code

I'm trying to run Java code dynamically inside a Java application using Truffle from GraalVM, without success. Settings I'm working on MacOs 11.5.2. I've follow

What To Do Failed Compiling?

I am getting an error while running the command npm start. The file is created in PancakeSwap Frontend and I've been trying to fix this for a while, thanks for

Why cant truffle be installed

Background information: I run macOS 10.14.6. I just started my programming journey so please forgive me if my questions are not rock solid... Grateful for your

Web3 contract call is always returning null

I am trying to connect to a smart contract deployed using Truffle. I am using Web3 from a React app but when I make a call to any of the contract functions I al

npm install always stuck at that exact time

I tried running $ npm install -g truffle and $npm install but it was constantly freezing at a particular point. I also tried command yarn global add truffle but

how to solve "VM Exception while processing transaction: out of gas"

I faced a VM Exception while processing a transaction: out of gas error in contract. Here's my truffle-config.js file: development: { "http://127.0.0.1:8545

Truffle compile

I get this Truffle error when I compile. I have tried adding payable to the addresses but it won't work. This is the error: TypeError: Member "transfer" not fo

Using Truffle-React + IPFS dependency issue

Hooking up IPFS to my Truffle React project is causing me issues. I'm getting a dependency error (I'm thinking that's what's going on) that I can't find anythi

when i try to run solidity-coverage with truffle run coverage then I got this error

I try to run solidity coverage for testing test case and its coverage but when I run coverage command its give error like this : - command used (truffle run cov

How to test smart contract with cross-contract invoke using truffle?

I have two contract, I write in in one file, named Sum.sol. The sum contract invoke Add contract. I just want to test cross-contract invoking. If I didn't put t

How can I compile atom code through terminal using truffle?

I trying to compile my atom code through the Mac terminal and I received this error: Error parsing /Users/owner/Desktop/contracts/contracts/ApprovalContracts.so

Where can I find console log of lite-server?

I’m now developing a simple Dapp using Truffle. When command npm run dev is submitted, the console mode changes as below. Therefore, even though “c

I tried to deploy a smart contract with address argument in ropsten, but the account is complained to be invalid

const wallets = [accounts[2],accounts[3]]; const shares = [2,1]; return deployer .then(() => { return deployer.deploy(

Web3 error when trying to call contract methods

I encounter the following error while trying to run a dapp made using React, Truffle & Ganache. I'm also using web3 version 1.7.1. The problem is that the c

Tried npm install -g truffle but getting this gyp error

I tried npm node-gyp -g but it didn't help. I am trying to install truffle in my mac. I am using mac os Catalina, node version 16.13.1, and npm version 8.1.2 np