New answers tagged

0

This is because strings have to be read from the memory storage; Declared like this string public symbol; string public name; in a function or constructor as well function setMyString(string memory myString) public { symbol = myString; } However, If your creating a token you should look at the ERC20 Standard to make sure you follow it and your token ...


0

This GitHub issue on ethersjs insists that my error was due to using the "wrong network," and indeed that was the problem. Specifically, I had misconfigured my deployment files such that Ropsten and Rinkeby were saved inverted, such that each was using the contract addresses from the other.


0

Try Uniswap protocol. Go to the https://app.uniswap.org/#/swap (you'll need metamask or similar tool). The idea behind this is that you swap ETH for some other token. You can specify the contract address to define which token you need. I just did this for USDC in the Kovan testnet.


0

the reason why it does not work is because the address has not been registered in the reverse registry... now the problem is there does not seem to be a reverse registrar in the Ropsten network...


0

Problem solved. It turns out that ropsten has a erroneous split in early September, since then if you use "snap/fast" mode, you'll be hooked to a wrong chain. relevant link here: https://www.reddit.com/r/ethdev/comments/posgnx/psa_ropsten_testnet_has_a_large_erroneous_split/


0

To get a return value with Web3 from a solidity function you have one of two options: First, you can mark the function view, which means that function cannot update the state or ledger, and then the return value will be returned to Web3 when using call() Second, if your function updates state, then you can emit an event with the data you want to retrieve, ...


1

Here is what I did to solve my problem: Change dependency of hdwallet-provider from 1.0.17 to 1.4.0. Relace the following line in package.json: "truffle-hdwallet-provider": "1.0.17" To "@truffle/hdwallet-provider": "^1.4.0" You won't get the error anymore if you have the same issue! David


Top 50 recent answers are included