New answers tagged

0

First of all, you are using People, while the name of your variable is people. Second, you can call push on an array, but you are trying to call it on an array element. In short, replace this: People[0].push(...); With this: people.push(...);


0

So taking a look at the events on etherscan, it looks like Approval events have been submitted to approve the transfer of 2 tokens from 0x62f28320f688a7a4e0021c55d7ffd1acd770a133 (your wallet?) to 0x813870feba76f27ec1afcf79432e065a4839f7ab (your contract) However I wrote a small contract to check the balances and allowances in the ERC20 contract you are ...


1

As @Chan-Ho Suh suggested in the comment you are looking through the debug of the transaction of the contract being deployed. As in your initial question, there is no constructor, there is nothing to step through. The problem is that you are not calling the function LoopCounter after deploying the contract in your step 5, you need to enter a value and click ...


0

I realize you're new to this. Some of your phrasing suggests possible confusion that could lead to this error. trying to deploy a contract via Remix Deploy to what? deployed on Metamask to where? I will break that down a little. We have to deal with code, compilers, chains and tools. Remix, as you know, is an IDE, has the JavaScript VM which is ...


1

The problem is related to the ABI JSON produced by the compiler and how the tools use it to determine if a function is view or pure. As you can see in the docs: The fields constant and payable are deprecated and will be removed in the future. Instead, the stateMutability field can be used to determine the same properties. Now, see how different are ...


0

I deployed your CrowdSale contract in Remix IDE using the Javascript VM with no issues. creation of Crowdsale pending... [vm]from:0xca3...a733cto:Crowdsale.(constructor)value:0 wei data:0x608...77b3alogs:0hash:0x650...40b38 status 0x1 Transaction mined and execution succeed transaction hash ...


3

It's not clear if you want to retrieve all the values in a mapping or use the mapping to store structures that contain interesting, multipart things. No to the first interpretation. Yes to the second. Lay out an instance (for one key) in a struct. Map the structs to the keys. struct MyStruct { uint part1; bool part2; ... } mapping(uint => ...


0

You can simply deploy them as separate contracts. On the "DEPLOY & RUN TRANSACTIONS" section of Remix, you can choose which contract you want to deploy, even if they are in the same file. When you have chosen your contract, simply hit "Deploy" on that same page. You can choose your network by specifying the "Environment" (on that same page) and ...


0

So as of Quorum v2.4.0, the underlying geth is still v1.8.x. That means you are a bit limited to the hardforks and EVM changes you may use when using remix and other solidity compilers. First, you need to ensure that you have all of the supported hard-forks enabled in Quorum genesis, a quick reference is our own quourm-examples project: https://github.com/...


2

Here is main advantage of each ide (maybe i will miss some please let me know): Studio: It support html, css, js and solidity unlike remix which only support smart contract only. (Basicly you can make a full dapp with studio but you can't with remix) It can preview your dapp website for you so you can easy see and modify your code quickly It is very ...


0

Before line require(bid2 > highestBid2); you have an extra }. Just remove that and it at least compiles. If you had correct indentation you'd notice this problem immediately. I suggest you use some editor which fixes indentation for you.


1

Found it, stupid mistake, but I missed it, so for anyone interested. It was the extra '/' in my URL. so had to use: remixd -s ~/myProjects/cleanKyber/smart-contracts/contractsV5/ --remix-ide https://remix.ethereum.org and not: remixd -s ~/myProjects/cleanKyber/smart-contracts/contractsV5/ --remix-ide https://remix.ethereum.org/


3

Getting started​ with Ethereum http://ethereum.org/beginners/​ https://docs.ethhub.io/ethereum-basics/what-is-ethereum/ Start developing https://cryptozombies.io/​ https://www.trufflesuite.com/tutorials/pet-shop​ https://ethernaut.openzeppelin.com/ (advanced)​ Smart Contract best practices - https://consensys.github.io/smart-contract-best-practices/ ...


1

Here are my thoughts on this topic: Don't store your private key or mnemonic on your machine if it is connected to the internet. This is a great target for hackers. Over the years I have seen many different approaches. For example: Hardware Wallets Paper Wallets However a cheaper option is storing the private key as an encrypted (password protected) text ...


0

Whoever comes here and sees the accepted answer should know that the approach by itself contains potential errors for the contract logic and provides a gateway for attackers. Whenever you use call you should check the return value of the function called. It will return false if it reverts. (bool success ,) = cA.call.value(1 ether).gas(xx)(""); Furthermore ...


2

This error is well known and the developer team is working on it in order to understand it better and fix. Go on the gitter channel dedicated to remix and you will find the discussion on going about it.


0

Follow this Document step by step. Also, you can download from github. while installation in ubuntu may be you face the problem of 'node-gyp rebuild'. so keep in this mind. https://www.npmjs.com/package/remix-ide


Top 50 recent answers are included