compile.js :  const path = require('path'); const solc = require('solc'); const fs = require('fs-extra');  const buildPath = path.resolve(__dirname, 'build'); fs.removeSync(buildPath);  const campaignPath = path.resolv...
I have a node js process that creates a web3 websocket connection, like so:  web3 = new Web3('ws://localhost:7545')   When the process completes (I send it a SIGTERM), it does not exit, but rather hangs forever with no console output.  I regi...
I'm working with React, Next.Js, semantic-ui-react and Solidity. It is my goal to print out the users address (from MetaMask) and a ProjectTitle (set by User) as meta infomation for a semantic-ui-react card. To print out the address in the 'h...
Is there any way to auto-generate test-cases in Truffle?  As an example, the AutoFixture Library was helping me to auto-generate test-cases in xUnit. I'm looking for a similar functionality....
currently i'm working on a ethereum dapp(voting), in my smart contract i have a function to fetch candidate list of type bytes32[] , on the java script side i'm not getting the values instead 0x only  How to parse the value , below is the cod...
How can I initialize the Item struct and assign to a variable?  contract ArbitrableBlacklist {      enum ItemStatus {         Absent,                              Cleared,                           }      struct Item {         ItemStatus status;...
When I try to run npm test with mocha, in my cmd it says Error: Cannot find module 'path'  I am a total beginner in this area and just trying to write some really simple code. I am using Mocha as my test frame, it worked totally fine yesterda...
Anyone know why my parameter is being seemingly ignored when I run the dapp?   This function is called when I press the button to send an X amount of money to a ganache account who's address I input into an HTML form while using the dapp.      Ap...
totalSupply = initialSupply * 10 ** uint256(decimals);    If the initialSupply = 21000000.000000000000000000  (21 million) Why multiply by 10?  pragma solidity ^0.4.16;  contract owned {     address public owner;      function owned() public {...
I hava a problem. I need to initialize the person having the address of the purse in the Javascript, then pass it to the function Solidity, but I get an error about wrong format.  My JavaScript function   $scope.myToken = accounts[0];  $scope.initPro...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.