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
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
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 { […]

Categories
Cryptocurrency Ethereum Mastering Development

How do I test the Ethereum app for security?

I created an Ethereum blockchain app that stores data in the network. I want to test this app for security, for example, the Denial of Service attack. I used a tool for this attack is lOIC (Low Orbit ION cannon). You ran this tool at http://127.0.0.1:7545 But I don’t know if it worked or not, […]

Categories
Cryptocurrency Ethereum Mastering Development

Airdrop or Distributing Amount of Token Every Month

I really need help from an experienced developer. My client wants me to make something that does this: Send 20% of the tokens created to developer address but only 2.77% every month for 36 months. So like if we are generating a token with 100 coins. I need to send 20 Tokens to the developer […]

Categories
Cryptocurrency Ethereum Mastering Development

Fast way of checking if my ethereum addresses can claim UNI tokens from uniswap?

I have quite a number of addresses in eth and is there a way to check if my address can claim uni without having to sign in with each individual account using uniswap?

Categories
Cryptocurrency Ethereum Mastering Development

Error on calling initialize after deploying upgradable contract

I have deployed my contract to mainnet,All thing was fine but after I tried to call initialize method I got error and I think proxies not initiated How can I do now? I lost some Ether and nothing worth that pragma solidity ^0.6.0; import ‘@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol’; import ‘@openzeppelin/contracts-ethereum-package/contracts/presets/ERC20PresetMinterPauser.sol’; import ‘@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol’; contract Token is Initializable, ERC20PresetMinterPauserUpgradeSafe { […]