Questions tagged [remix]

Questions about Remix, an integrated development environment (IDE) for smart contract development. Remix focuses on the development and deployment of Solidity written smart contracts using the Ethereum blockchain.

Questions about Remix, an integrated development environment (IDE) for smart contract development. Remix focuses on the development and deployment of Solidity written smart contracts using the Ethereum blockchain.

Related tags: ,

729 questions
5
votes
1 answer

How to console log in remix IDE

I am trying to console and debug the code or solidity I am using https://remix.ethereum.org/
piash
  • 153
  • 1
  • 5
5
votes
1 answer

What is the best practice of copying from array to array in Solidity?

I am trying to save gas by optimize code. In a flash, however, I was wondered what is the best practice of copying from array to array in Solidity. I present two option. One is copying by pointer (I guess) and the other is using…
TyeolRik
  • 466
  • 2
  • 25
5
votes
1 answer

How to fix / debug errors (invalid arrayify value) when deploying a solidity contract in Remix

Problem I am trying to deploy a smart contract via Remix. Unfortunately, it fails with a very unhelpful error message. Error Message creation of MyContract errored: Error encoding arguments: Error: invalid arrayify value (argument="value",…
Gh05d
  • 7,923
  • 7
  • 33
  • 64
5
votes
1 answer

How to set msg.value in Remix IDE

This is probably an easy error I'm missing, but I cannot for the life of me figure out how to set the msg.value variable in this contract. I've read online that this value is the amount of wei associated with the transaction, but how do I, as a…
hcwil
  • 59
  • 1
  • 5
5
votes
1 answer

why this view function is not free ether function?

Show Image as you can see the image above, the function 'custLogIn' is view type (free on ether) but after deploy the contract trhough Remix, it changed into non-free function. I want to know about it and change into ether free function. please give…
mecha kucha
  • 111
  • 1
  • 2
  • 10
5
votes
4 answers

"Invalid input source specified" - Remix Solidity IDE error

I have removed everything from my remix IDE, except the following: pragma solidity ^0.6.6; contract daily_unlimited_deFitasy{ } And yet I am still getting the following error when attempting to compile: Invalid input source specified Why am I…
Patrick Collins
  • 5,621
  • 3
  • 26
  • 64
5
votes
1 answer

Solidity Remix: passing multiple bytes32 type arguments

How to pass multiple arguments in Remix? No matter which way I pass the arguments to the setOrder function, I get different errors: SyntaxError: Unexpected token in JSON at position 1 Error: invalid bytes32 value (arg=undefined, type="string", …
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
4
votes
2 answers

Can I handle multiple loaders for a single URL in Remix?

Currently I have a landing page with multiple sections, it is build with Remix.run. The sections are part of the same url, they are shown one next to each other vertically in the same page. My problem is that the page last some time to load because…
Andres Pino
  • 155
  • 3
  • 9
4
votes
1 answer

How to manage the state in Remix?

I was going through Remix for quite a sometime but still not able to figure out state management. How to share the data between the components/routes? How to store the data which can be accessible by any component? And should be able to update the…
venky royal
  • 1,860
  • 2
  • 11
  • 19
4
votes
1 answer

CompilerError: Stack too deep, try removing local variables

I am trying to do a dapp project. I have an error about stack too deep, but I don't know how can I solve this problem. CompilerError: Stack too deep, try removing local variables. --> contracts/proje.sol:145:5: | 145 | function addRecord(address…
MaybeExpertDBA
  • 345
  • 6
  • 15
4
votes
1 answer

Solidity: problem creating a struct containing mappings inside a mapping

This is my code where i am trying to create a struct containing two mappings and insert the structs into a mapping: pragma solidity ^0.7.2; contract Campaign { struct Usuario { string id; mapping(string => uint) debe; …
4
votes
2 answers

Solidity: Error when deploying the voting tutorial; problem with constructor and array?

I tried to reproduce the voting tutorial from the solidity homepage [https://solidity.readthedocs.io/en/v0.5.11/solidity-by-example.html#voting]. I encountered the following problem: The code can be compiled withouth an error, but when i want to…
Rasputin221
  • 51
  • 1
  • 3
4
votes
2 answers

How to Call contract inside another contarct in solidity version 0.5.2?

I'm using solidity version 0.5.2 pragma solidity ^0.5.2; contract CampaignFactory{ address[] public deployedCampaigns; function createCampaign(uint minimum) public{ address newCampaign = new Campaign(minimum,msg.sender); //Error //here!!! …
Kartik ganiga
  • 390
  • 4
  • 12
4
votes
1 answer

Mainnet deploying array of addresses as constructor parameter in Remix Solidity smart contract does not work

I'm trying to deploy a smart contract to the mainnet via Remix/Metamask. I have an array of addresses for the constructor parameter and can't get the transaction accepted. I have tried both double quotes "" and single '' around each address. Anyone…
Adremalin
  • 137
  • 3
  • 9
4
votes
1 answer

Why does this Solidity function return a 0 after assert?

I have written this function: // Function to get an owned token's id by referencing the index of the user's owned tokens. // ex: user has 5 tokens, tokenOfOwnerByIndex(owner,3) will give the id of the 4th token. function tokenOfOwnerByIndex(address…
1
2
3
48 49