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

My Chainlink job not getting called. What could I be doing wrong?

I have a Chainlink node on Kovan testnet. I am following the instructions on https://docs.chain.link/docs/fulfilling-requests page and trying to test my jobs through Testnet Consumer on Kovan. Oracle contract deployment was successful. Testnet…
3
votes
2 answers

Slice numbers in Solidity (For example extract 2 first number from uint)

I have this numbers: uint256 numbers = 123456789; I need to extract the two first number (12) into uint variable. Also possibility to extract the next 2 numbers following the previous one: 34 ect. Is there any easy way to do such thing in solidity…
3
votes
1 answer

Warning Regarding extcodehash in Remix for openzeppelin-contracts

I have compiled the openzeppelin-contracts code in Remix IDE. Meanwhile, I have obtained the following warning. Warning: The "extcodehash" instruction is not supported by the VM version "byzantium" you are currently compiling for. It will be…
JF0001
  • 819
  • 7
  • 30
3
votes
1 answer

geth shows "contract creation code storage out of gas" when I deploy contract from remix

I created a private network using geth. And deploy a contract from remix (browser). It shows following error. genesis.json is this. { "config": { "homesteadBlock": 0 }, "nonce": "0x0000000000000042", "timestamp": "0x0", …
user3601428
  • 31
  • 1
  • 3
3
votes
1 answer

How I can calculate the transaction cost in USD

I have done a transaction on Remix and it costs 199093 gas. At the moment of writing, the gas price is 7.2 Gwei ( $ 0.031 ) from here ethgas station If I want to calculate how much I should pay for this transaction, that means: 199093 * 7.2 =…
sheemar
  • 467
  • 3
  • 13
3
votes
2 answers

Warning: Using contract member "balance" inherited from the address type is deprecated. Solidity

Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead. I am getting this warning in Solidity using…
Matt
  • 33,328
  • 25
  • 83
  • 97
3
votes
3 answers

Why am I getting this error ? "Gas estimation errored with the following message (see below). The transaction > execution will likely fail"

Trying to test solidity using Remix IDE. I keep getting the error: Gas estimation errored with the following message (see below). The transaction > execution will likely fail. Do you want to force sending? Does anybody have an idea about what…
Traoré Moussa
  • 433
  • 1
  • 6
  • 22
3
votes
1 answer

In Remix - Solidity IDE, How to pass arguments?

I'm studying smart contracts on solidity and I ran into a problem. Every time I try to create this contract, my arguments are not confirmed. I expected a "OreOreCoin" to come out when I chose name, but instead I get an empty string. and This my…
jinkook Lee
  • 33
  • 1
  • 5
3
votes
1 answer

How to convert uint256 to bytes, and bytes convert to uint256

I want to send a series of numbers or letters like "aa5glegd...." for 44 byte as uint256 to call method, and in that method change it to bytes, then convert bytes to uint256.
user8376682
  • 31
  • 1
  • 5
3
votes
1 answer

Remix Ethereum where goes the contract?

I don't understand where actually the smart contract goes, when I click on create under remix.ethereum.org. If I choose for example the Injected Web3, this should publish the contract to the ropsten test net, right? But how can I access the contract…
HansPeterLoft
  • 489
  • 1
  • 9
  • 28
3
votes
1 answer

Solidity function with array.push() not work when structure have more than two parameters

I have deployed a contract with following push function to my local privatechain via remix. struct TestComplex{ address testValue; address delegate; uint testInt; } TestComplex[] testArray; function setTestArrayByPush( address _delegate,…
Yudao Yan
  • 95
  • 1
  • 7
3
votes
1 answer

remix solidity contract how to pass multiple arguments into the create button

I have a sample code look like this: function HubiiCrowdsale(address _teamMultisig, uint _start, uint _end) Crowdsale(_teamMultisig, _start, _end, hubii_minimum_funding) public { PricingStrategy p_strategy = new FlatPricing(token_in_wei); …
dome some
  • 479
  • 7
  • 22
3
votes
2 answers

Listening to events in Web3j

I'm tinkering with web3j and most of the things that I want to do succeed, however I seem to not be able to listen to events. I've extended the ballot.sol contract you get with remix by adding an event VoteEnded, which is fired when a call is made…
MPL
  • 384
  • 1
  • 4
  • 20
2
votes
0 answers

How Gas units are calculated in Smart Contracts in Ethereum

Consider the following contract written with solidity in remix.ethereum.org // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.2 <0.9.0; contract Sum { uint public sum; uint private first; uint private second; …
unipsilo
  • 21
  • 2
2
votes
1 answer

How to reach another contract struct-array via interface

I have 2 separate contracts and I want to reach a single array element in another contract using interface: contract ContractA { struct Person { string name; } Person[] public persons; function createPerson(string memory…