Categories
Cryptocurrency Ethereum Mastering Development

How to create an automatic smart payment ERC20 system

how can I create an automatic smart contract to send tokens ,if a user send ETH to the smart contract and also to bee able to recover ETH from the smart contract and tokens too thank you. To explain brief, if Bob sends 1ETH he receives automatic 100tokens in ERC20 and the contract owner can […]

Categories
Cryptocurrency Ethereum Mastering Development

How to recover ETH from smart contract

How to recover eth from smart contract if you are the owner of the smart contract and used this code

Categories
Cryptocurrency Ethereum Mastering Development

Problem and question

Peace, (I’m new to this hobby) I have a problem. I use PhoenixMiner through nicehash. I have card 1: https://www.sapphiretech.com/en/consumer/pulse-rx-580-8g-g5 I get ~ 31.2 Mh / s After updating BIOS With these settings: GPU 1175MHz 850 mV Memory 2170MHz 855 mV And I get such a problem every so often: "Incorrect ETH share" What is […]

Categories
Cryptocurrency Ethereum Mastering Development

ReferenceError: accounts is not defined

I was using "truffle test" for testing with JS. gives this error. here is the code of that part. it(‘transfer success’, function(){ return Eve.deployed().then(function(instance){ tokenInstance = instance; // testing "require" first by sending larger than the senders balance return tokenInstance.transfer.call(accounts[1], 9999999999999); }).then(assert.fail).catch(function(error){ assert(error.message.indexOf(‘revert’ >= 0, ‘error message must contain revert’)); return tokenInstance.transfer.call(accounts[1], 250000, { from: […]

Categories
Bitcoin Cryptocurrency Mastering Development

How do I set up IRC bouncer to receive messages and follow the discussion while I am offline?

I am now set up on IRC and I can attend the Bitcoin Core PR review club sessions. But when I am offline I can’t receive messages and I can’t follow the discussion which has happened during the time I was offline. How do I set up a IRC bouncer to address these problems?

Categories
Cryptocurrency Ethereum Mastering Development

eth.getRewardByHash

I’m a beginner, and I’m trying to be stand-alone. I’m searching the way 😉 Does a knowledge basis exist in order to be stand-alone ? how does eth.getRewardByHash work ? Thanks for help Regards

Categories
Cryptocurrency Ethereum Mastering Development

MetaMask issues

I am using the latest version of Chrome and I re-installed MetaMask but the below problems persist. When I enter my password into MetaMask I get the message "Network request failed". I close MetaMask and then re-open it, and I am now successfully logged in. When I try to add an ERC20 token I go […]

Categories
Bitcoin Cryptocurrency Mastering Development

Export from Bitcoin — import to Bitcoin Cash

I have address 3GXXiZhq1MZFeWtM6wFUWDA9wSLQh2NU6E, generated by my Bitcoin Core v0.20.0. Accidently I sent Bitcoin Cash there. I use dumpprivkey 3GXXiZhq1MZFeWtM6wFUWDA9wSLQh2NU6E console command and get private key. Then I switch to BCH Unlimited v1.9.0.0-96d2de8d0 and do importprivkey …… It imports as qqexcx5vkel7lcvny2nm7hq439cd4xvpdvuddlu0fh with zero balance. But address must be pz3tax8neurguwsdn538eh7hfyxmy2pznsgt5ajpk2. Same problem if I import it […]

Categories
Cryptocurrency Ethereum Mastering Development

How do I fix this error message UnimplementedFeatureError: Nested dynamic arrays not implemented here

I am trying to create a function where if you call getDeployedCampaigns, it will output both the address and the string. Is there a way I can work around this issue so the error doesn’t occur? pragma solidity ^0.4.17; contract ContractFactory { address[] public deployedCampaigns; string[] public title; function getDeployedCampaigns() public view returns (address[], string[]) […]

Categories
Cryptocurrency Ethereum Mastering Development

ReferenceError: balanceOf is not defined

When i try to test my contract using truffle i get this error My Token contract code JudeToken.sol is: pragma solidity >=0.4.2 <0.8.0; contract JudeToken { string public name = "JudeToken"; string public symbol = "JDT"; string public standard = "JDT Token v1.0"; uint256 public totalSupply; mapping(address => uint256) public balanceOf; constructor(uint256 _initialSupply) public { […]