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
2
votes
0 answers

TypeError: Member "push" is not available in struct SmartRegistryData.CDMD memory[] memory outside of storage

**// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract SmartRegistryData{ struct TP { uint id; } struct OP { uint id; } struct BP{ uint id; } //ContractDescriptionMetaData struct…
2
votes
1 answer

How to properly deploy a smart contract and not lose money?

Yes, I have already read the information about how to pay ETH gas(website) and know approximately how to do it, but the amount of money to deploy is very large, so I want to ask if I will do it right: I am going to deploy smart contract at 10 am - 4…
maxet24
  • 111
  • 1
  • 10
2
votes
1 answer

Does Solidity function with payable modifier allow to perform msg.sender.call{}

Found out that there are error in my own code. Answered my own question I am beginner of Solidity programming, and came across with reentrancy risk. I have tested script below in remix and it works per…
KimuraLeong
  • 21
  • 1
  • 3
2
votes
2 answers

I cannot get Remix in any browser or desktop to load...any ideas?

I have disabled mixed content, my DNS, my VPN, etc and in any browser it shows up blank but has the warning at the bottom "You are using an https connection. Please switch to http if you are using Remix against an http Web3 provider or allow Mixed…
Dallascat
  • 21
  • 1
  • 3
2
votes
2 answers

Remix IDE doesn't show up child Contracts

I'm trying to interact with a child contract that I host by calling a function from a contract that I hosted via the remix UI. The code: // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.4.22 <0.9.0; contract TokenCreator { address…
nastari
  • 51
  • 6
2
votes
1 answer

Problems when buying tokens from a contract using BNB

I am creating this smart contract, it creates and adds all tokens to my wallet. Then I send all the tokens in my wallet to my contract. However, when from another wallet I send BNB for the contract I wanted him to return a number of tokens that are…
2
votes
2 answers

Fetch pair price from Uniswap using smart contract function

I am relatively new to Solidity, I am trying to fetch the price of a pair with the following contract: contract Uniswap { constructor () public payable { } function getBalance() public view returns (uint) { return…
Viktor.w
  • 1,787
  • 2
  • 20
  • 46
2
votes
1 answer

TypeError on Remix for BSC Contract

I have this error "TypeError: Return argument type address is not implicitly convertible to expected type (type of first return variable) address payable. --> Driven.sol:233:16: | 233 | return msg.sender; | ^^^^^^^^^^" for the following…
user15809778
2
votes
1 answer

How to handle REST API response in Solidity on Ethereum platform?

I call REST API on the Ethereum platform with Solidity language. I need to handle the response. API returns true or false. Could you please help to handle the response? Thanks in advance! I am using the following code: import…
2
votes
3 answers

Undeclared identifier in solidity remix?

I'm new to Solidity.I've got an error from compiling the above code. browser/EHRs.sol:18:9 :Error:Undeclared identifier.require(msg.sender = dotor); Hopefully someone can give some guidance pragma solidity ^0.4.0; contract postRecord { bytes32…
2
votes
2 answers

Solidity: Why does a faulty input set my boolean to "true"?

I'm using remix.ethereum.org I wrote this very simple smart contract: pragma solidity ^0.4.19; contract TicTacToe { bool myBool = false; uint8 myUint8; uint256 myUint256; string myString = "myString"; bytes myBytes =…
2
votes
1 answer

Web3.py abi keyerror while calling a function on ganache

I have compiled my code in remix ide. it is working fine there. I copied the bytecode and adi from compilation detail to my python code. I am using web3.py as an external library. but when I try to run my function, I am getting an error keyerror. I…
2
votes
1 answer

Accessing variable value initialized in one function from another function in Solidity

I am creating a smart contract that aims to provide a trustworthy way of getting paid on completion of project, but I am having some issues. So far, there are three major functions: createProject(), joinProject() and submitProject() My project…
Dipti
  • 85
  • 2
  • 9
2
votes
1 answer

Solidity error message when executing smart contract: “The called function should be payable if you send value...”

I'm trying to deploy an ERC777 test contract ON REMIX IDE; but the VM is giving me the below error when I try to transact the contract VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function…
gussy_88
  • 23
  • 1
  • 3
2
votes
0 answers

How to fix "Gas estimation failed error" when transferring Minter and Owner roles to a new account in one function?

I have a simple ERC20 contract which is ERC20Detailed, ERC20Mintable and Ownable. On deployment I want: Add Minter to a new account, passed in the argument Remove deployer from Minter role Transfer Ownership to a new account, passed in the…
Gio
  • 73
  • 2
  • 13