kappa
  • Member for 8 months
  • Last seen more than a month ago
When migrating truffle second time, I get "Could not connect to your Ethereum client with the following parameters:"
0 votes

before deploying you have to run ganache-cli or any other client similar to it. try truffle develop before truffle migrate develop: { host: "127.0.0.1", port: 8545, network_id: "*&...

View answer
How to deploy contract in Truffle Console using Ganache
0 votes

You have to deploy your contract before trying to access it.truffle migrate log shows that you didn't deploy your contract.For that you have add 2_filename.js before deploying

View answer
View remote chain in GUI
0 votes

You can also use ganache-ui to check transaction log.Refer https://www.trufflesuite.com/ganache

View answer
View remote chain in GUI
0 votes

use remix-ide https://remix.ethereum.org/.It is not a blockexplorer.But it will listen to all the events emitted by ganache-cli.

View answer
Reinstalled Metamask, Accounts Gone!
0 votes

const Web3 = require('web3'); const HDWalletProvider = require('@truffle/hdwallet-provider'); mnemonic = 'enter your seed phrase here'//replace this with your seed phrase const provider = new ...

View answer
Casting in solidity is painful
1 votes

uint digit_to_be_verified=0//0 for lsb input == bytes32(1<< 4 * digit_to_be_verified ) change digit_to_be_verified variable to verify any bit

View answer
Automatically generate an address for a token in the ERC20 and TRC20 network
Accepted answer
1 votes

Use Metamask or truffle-hd-wallet-provider for creating address.You can create 'n' no of address

View answer
mocha beforeEach is not running
Accepted answer
1 votes

beforeEach will get executed at before every it() function in mocha.so you have it() fn in your code as shown in code snippet below describe("Lottery", async () => { it('test1',async()=&...

View answer
How to convert bignumber to normal number using ethers.js?
1 votes

const BigNumber = require('bignumber.js'); let num=new BigNumber(1252500000000000000) let denom = new BigNumber(10).pow(16) let ans = num.dividedBy(denom).toNumber() console.log(ans) Hope this ...

View answer
Insufficent network fees
0 votes

For all transaction in Ethereum,gas fees are paid in its native currency, ether (ETH).So,you need to sufficient eth for transferring erc20 tokens too.

View answer
Can ERC tokens change their creation code or parameters afterwards?
Accepted answer
0 votes

No.Contract can't change its byte code once it has been deployed.

View answer
How do I dynamically set in my Web3.js file the deployed smart contract's ABI & address?
0 votes

artifacts.require("<contract_name>") will fetch the contracts json file(which is generated in build folder after compiling every time) within truffle project.

View answer
Truffle and Ganache GUI: GUI and blockchain disconnect or some other error
0 votes

Use ganache-cli instead of ganache-gui.//gui is not working properly few times.In addition to this,you can change the mnemonic by configuring truffle.js or truffle-config.js

View answer
Set msg.sender in testing
Accepted answer
2 votes

Replace "=" with "==" in require statement : require(msg.sender == data[i].owner, "Sender is not owner.");

View answer