Questions tagged [remix]

Questions about Remix, an online browser compiler for Solidity, formerly called Browser Solidity.

Filter by
Sorted by
Tagged with
0
votes
2answers
67 views

Error encoding arguments: Error: invalid number value (arg=“”, coderType=“int128”, value=9223372036854776000, version=4.0.44)

I'm new to Solidity and I'm having some troubles with type issues. I'm trying to execute the following functions: function sigmoidSingle(int128 x) public pure returns(int128) { //The sigmoid ...
0
votes
0answers
10 views

Know which function was called

I'm using remix and i want to know which function was called so that I can update a state variable. Does anyone know how to do this?
0
votes
0answers
4 views

getTransactionReceipt() in JavaScriptVM Environment

Is it possible to get a transaction receipt using Remix in JavascriptVM Environment? If it is how can i do that? Thanks in advance
0
votes
1answer
142 views

I want to withdraw amount from Receiver Contract's tokenFallback() function in ERC223 how to implement this scenario?

I am using ERC223 standard token transfer contract and receiver contract which includes tokenFallback(). I've transferred tokens from my ERC223 contract to receiver's contract address, now I want to ...
1
vote
0answers
15 views

Non linear State Machine Pattern

The State Machine presented at solidity documentation shows a good way to implement the pattern in linear cases. However, when the states don't transact in a non-linear manner there is no example. ...
0
votes
1answer
32 views

Contract failing at updateUserTask

The contract intends to create a set of tasks dynamically, eg: tasks can be added(There is no need for deletion.) Some tasks will be related by a variable within the struct called smart contract Each ...
0
votes
0answers
7 views

Remix not loading in Chrome and Firefox

For some reason i cant access the online Remix IDE. http://remix.ethereum.org it gives me a blank page with a logo. Tried to access from Firefox, Chrome and Edge aswell as disabling all extensions ...
2
votes
1answer
49 views

How to get the return type of a function of an already deployed contract?

I am currently working on a real estate blockchain project. Now I have 2 contracts user.sol and property.sol. The person who is registered on the website through user.sol can only buy or sell property ...
1
vote
1answer
58 views

Is there any way to debug a smart contract bytecode by Remix?

I'm looking for a way to avoid using 3-rd party tools to debug smartcontract without source code. Can I do it by Remix? I think this way: we need some tool to convert a bytecode or assembly of ...
0
votes
1answer
17 views

Set block size and block number

Is there a way to set the block size and the block number in Remix IDE? If not, could you suggest another platform where I can change these parameters? Thanks
0
votes
1answer
33 views

Contract not showing the name and symbol

I deployed a contract on ropsten but it was not showing the name and the symbol. I have the feeling that there is something wrong at the deployment and I think it has to do with the parameters. As you ...
0
votes
0answers
11 views

how to calculate the message part for pedersen hash in solidity

I am trying to implement pedersen hash using solidity. Is it possible to implement and how to split the message according to the conditions of pedersen hash.
0
votes
1answer
48 views

Gas requirement of function postrecord on retrunstring is high, anyone know how to bring it down?

pragma solidity ^0.4.0; contract insure { address public doctor; function Person() private { doctor = msg.sender; } modifier onlyDoctor { require(msg.sender == doctor); _; } } ...
0
votes
1answer
130 views

Function burnfrom error: gas required exceeds allowance or always failing transaction

I have created a contract using Remix. When I run the function burnFrom(), it shows: gas required exceeds allowance or always failing transaction. What am I doing wrong? function burnFrom(address ...
0
votes
1answer
17 views

Access input of a different function but in same contract

Is there a way for a function B() to have access to the input given at function A(), knowing function A() and function B() belong to the same contract XPTO?
0
votes
2answers
129 views

Am I Able To Save Remix.IDE Files To My Device?

I am a computer science student and for my coursework, I want to write a smart contract program. I discovered the Remix.IDE is a web-based IDE, not like previous IDEs I have used, such as IDLE for ...
0
votes
1answer
115 views

Manage accounts in Remix Web3 Provider env connected to a TestRPC client node

When I run the TestRPC client (ganache-cli), it provides me with 10 different accounts and private keys along with a local server at localhost:8545 Available Accounts (0) ...
1
vote
1answer
209 views

How to let a function know that a specific input parameter is of ether value?

I am currently trying to build a prototype for a simple Ethereum based Ebay - I know there are already solutions for it, it is just for learning purposes. Currently I am lacking the understanding on ...
0
votes
2answers
154 views

how to write backend for contract if you use infura ropsten metamask and remix

i'm using metamask with ropsten. deployed my contract on ropsten using remix. for the backend i used infura to create instance of web3. ew Web3(new Web3.providers.HttpProvider('https://ropsten.infura....
0
votes
1answer
23 views

Passing structures between contracts with ABIEncoderV2 [closed]

Hello I am having problems passing accessing the structure Rental in my secound contract can some one help? contract RentalCompleting{ struct Rental { uint256 stratingDate; uint256 endingDate;...
0
votes
0answers
16 views

Is it possible to pass arguments obtained in a web3 app to a smart contract and then call it?

I have this transaction that I got from a response from the 0x protocol, is it possible to pass it as an argument to a function within a smart contract?
0
votes
1answer
152 views

Getter and Setter Functions in Solidity not showing any output

I have written a smart contract with the Getter and Setter functions but it is not showing any output in IDE-Remix. My code is ''' pragma solidity ^0.4.21; contract GetandSet{ string name; ...
0
votes
1answer
114 views

Deploy contract to Parity dev chain using Remix

I'm trying to deploy a contract via remix to my local development chain. However, the transaction never gets mined and is pending forever. When I use a node script it works (at least I receive the ...
1
vote
1answer
52 views

The correct approach to changing inherited variable content

What is the correct approach to change the content of an inherited variable? If contract A inherits contract B which has an variable b, and contract A is initialising the inherited variable b ...
0
votes
1answer
38 views

remix compiler warning infinite gas requirement

I'm trying to deploy a trivial faucet program which compiles OK with remix but I get the following error. "Gas requirement of function Faucet.withdraw(uint256) high: infinite. " This means that while ...
0
votes
0answers
19 views

Auction project in Solidity: Why do I get “VM error: invalid opcode” for this code?

I am trying to do an Auction project and this part is bugging me. I can't figure out what is the problem that's causing the following error message: "VM error: invalid opcode.". Even if I do ...
1
vote
1answer
80 views

Static Analysis raised 9 warning(s) that requires your attention. Click here to show the warning(s)

I receive these warnings in REMIX so the question is: Can I compile my contract and then verify it regardless of these warnings? pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a,...
2
votes
1answer
39 views

How to implemet condition for constructor?

Looking to learn solidity so need your support for this I have made a constructor in my contract where maxAvailableNumber = 1; What I want to do is if the balance of user is more than certail limit ...
1
vote
1answer
23 views

What's the purpose of the following code in the program?

I was following a tutorial on building a simple Solidity program for Ethereum transactions between a smart contract and account. However, I didn't understand the following code:- balanceReceived[msg....
0
votes
1answer
80 views

Transfer money between accounts in solidity

I am writing a contract where I want to transfer money (present in the contract owners account and not the contract) to an account address passed to a function in the contract. for some reason this ...
0
votes
2answers
64 views

How do I give every user Ethereum an address and does it affect security

I have a project with Ethereum Blockchain the users send the data to the server and the server writes the data in the blockchain network My question is how do I represent the server in the smart ...
0
votes
0answers
18 views

Switching addresses in Remix

I am creating contracts similar to VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function should be payable if but combined with the restricting ...
0
votes
1answer
21 views

Access Tuples elements

I have the following tuple: ( , , uint256 standardDepositAmount, , ) I need to use the standardDepositAmount in a require, like: require(standardDepositAmount == something) how can i do that?
0
votes
1answer
26 views

cannot transfer token from EOA account to a contract from function

i was making a contract for staking where user transfer its token to a contract and i will give him interest but i got stuck to this problem i have been searching for 3-4 days but for it is not ...
2
votes
2answers
2k views

Web3j: “Intrinsic gas too low” error when deploying contract in Ethereum from Java

I am a new to Ethereum and Blockchain, I have been trying execution of Contracts using Metamask and Remix using Chrome browser for sometime. I am trying to deploy the same contract from Java using ...
0
votes
1answer
70 views

Calling a function from another contract is not working. But calling the function from deployed contract is working

I have a problem with calling a function from another contract. I don't know why it is not working. Contract DateTime(https://github.com/pipermerriam/ethereum-datetime) is a util for converting ...
0
votes
1answer
23 views

What is the proper way to store timestamp in blockchain?

I am trying to store the timestamp in the blockchain using block.timestamp or now. But that keeps throwing warning as Use of "block.timestamp": "block.timestamp" can be influenced ...
2
votes
2answers
275 views

error in remix IDE

I am facing this type of Error in 'remix IDE' while connecting it to 'web3.js@0.20.2' Error: Failed to decode output: Error: insufficient data for uint256 type (arg="", coderType="uint256", value="...
0
votes
1answer
61 views

minimumBet Appears to be Returning Incorrect Amount

I'm following this tutorial, which seems like a great intro to solidity contracts, but I've got an issue where I don't see the same results as on the post. When calling minimumBet from remix.solidity,...
1
vote
2answers
358 views

Using “.value(…)” is deprecated. Use “{value: …}” instead

This works fine in Remix but when trying to work in VSCode (for compiling purposes; DApp course, trying to build .json through compile.js ) it throws the error Using ".value(....
1
vote
1answer
21 views

What is the right way to calculate gas price and limit for contract deployment?

I have tried several times and reached up to a gasPrice of 65 Gwei and a gasLimit of 500,000 which is $7.6 and still the deployment fails with error "Out of gas". After spending tens of USD ...
0
votes
2answers
68 views

Infinite gas on assigning struct

I have this code and it gives me infinite gas. please help me improve it. pragma solidity ^0.4.23; // v6 contract owned { constructor() public { owner = msg.sender; } address owner; ...
0
votes
1answer
126 views

error message ParserError: Expected ',' but got 'memory'

I have this error but I do not know what is wrong? browser/arry.sol:6:58: ParserError: Expected ',' but got 'memory' function addScore(unit24 s) public returens(unit24 []memory){ ...
14
votes
3answers
13k views

TypeError: Data location must be “storage” or “memory” for parameter in function, but none was given

/// @dev Adds a new transaction to the transaction mapping, if transaction does not exist yet. /// @param destination Transaction target address. /// @param value Transaction ether value. /// @param ...
-1
votes
0answers
13 views

Why i cant select my contract in remix?

i cant acces my "inheritorContract.sol". when i click it just marks it as text, and "heritageContract.sol", that imports inheritor, cant compile and doesnt show the error this is ...
0
votes
1answer
31 views

Remix not showing function buttons after the contract is successfully deployed

I am expecting Remix to show me buttons through which I could interact with the contract functions once I have deployed it successfully but the buttons are not showing you as can be seen in the below ...
1
vote
1answer
117 views

Writing contract for airdrop distribution

I have a problem. we have an ico. I would like to use the selfdrop method for airdrop distribution. While the superskynet's ico continued, they also wrote a selfdrop contract. can you tell me how I ...
0
votes
2answers
360 views

Is there a way to dynamically create a contract that points to a previous contract?

I would like to implement a tracking system .. where i track events between two parties who deliver an item between them .. then the receiver would deliver it to another person and so on... I would ...
1
vote
0answers
33 views

Alternative to ganache

can someone please tell me an alternative to Ganache? Tried installing ganache on my laptop and it's not supported. Ganache works on 64 bit computers and mine is 32bit. Is there a way I can go round ...
1
vote
1answer
186 views

SafeMath .add() imposes infinite gas

When I use add() function from Solidity SafeMath library, I get infinite gas requirement in remix (and this reflects in transactions that wont go through). Simplified example: function someFunction()...

1
2 3 4 5
34