How to change Ethereum default directory

Im trying to run geth attach on my console , i have already started a node , this is the script that i used : #!/bin/bash geth –identity “miner1” –networkid 42 –datadir “~/Desktop/Tutorials/ChainSkills/miner1” –nodiscover –mine –rpc –rpcport “8042” –port “30303” –unlock 0 –password ~/Desktop/Tutorials/ChainSkills/miner1/password.sec –ipcpath “~/Library/Ethereum/geth.ipc” –allow-insecure-unlock And this is the log that i get…

How to change Ethereum default directory

Im trying to run geth attach on my console , i have already started a node , this is the script that i used : #!/bin/bash geth –identity “miner1” –networkid 42 –datadir “~/Desktop/Tutorials/ChainSkills/miner1” –nodiscover –mine –rpc –rpcport “8042” –port “30303” –unlock 0 –password ~/Desktop/Tutorials/ChainSkills/miner1/password.sec –ipcpath “~/Library/Ethereum/geth.ipc” –allow-insecure-unlock And this is the log that i get…

How to change Ethereum default directory

Im trying to run geth attach on my console , i have already started a node , this is the script that i used : #!/bin/bash geth –identity “miner1” –networkid 42 –datadir “~/Desktop/Tutorials/ChainSkills/miner1” –nodiscover –mine –rpc –rpcport “8042” –port “30303” –unlock 0 –password ~/Desktop/Tutorials/ChainSkills/miner1/password.sec –ipcpath “~/Library/Ethereum/geth.ipc” –allow-insecure-unlock And this is the log that i get…

What is a good alternative to `ContractTranslator.encode_abi`

Since the ethereum Python library has been deprecated in May 2019, the ContractTranslator.encode_abi function is probably not the best way to turn Python argument lists into calldata strings. In particular, it doesn’t support functions with the same name but different argument lists. What is a better way to do this? I’ve been digging into web3.py…

DaoAttack code not working

I am trying to replicate the famous DAO attack for a cryptocurrencies course. I have the following contract already deployed on the blockchain. pragma solidity ^0.5.4; contract EDao { address payable public student; //Events event Success(address src,uint256 ret); event Fail(address src,uint256 ret); event NotEnoughFunds(address src, uint256 req, uint256 avail, uint256 balance); //Structs struct Fund {…