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

Warning: SPDX license identifier not provided in source file

I created a new solidity contract. The contract is up and running but giving me this warning. Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier:…
user14606211
36
votes
8 answers

(ESLint/Cypress): Parsing error: ESLint was configured to run on `/component/TestComponent.cy.ts` using `parserOptions.project`

I am setting up a new project with Remix (remix.run) and I am trying to configure Cypress/ESLint for component testing. I have a TestComponent.cy.ts with some boilerplate code: describe('TestComponent.cy.ts', () => { it('playground', () => { …
T. Duke
  • 646
  • 1
  • 6
  • 17
23
votes
11 answers

solidity transaction error, The called function should be payable if you send value and the value you send should be less than your current balance

I'm learning solidity on remix. I was following some tutorial video on youtube and I've got stuck trying to build 2 contracts. contract ERC20Token has function which increases balances. And Mycontract instantiates and call the mint function. I did…
Baaam Park
  • 415
  • 1
  • 5
  • 7
11
votes
2 answers

Interact with deployed contract with ABI using Remix

How can I interact with an already deployed contract on ether(not mine) using Remix without the source code, but I have the ABI. The reason I want to do it is because some contract has more than 20 .sol files which I dont want to manually copy and…
Vova
  • 143
  • 5
9
votes
1 answer

Connect the Remix Ethereum IDE to localhost

I would like to connect Remix - Ethereum IDE (https://remix.ethereum.org) to localhost. I followed the instructions https://remix-ide.readthedocs.io/en/latest/remixd.html#update-to-the-latest-remixd: I installed remix daemon npm install -g…
Zufar Sunagatov
  • 668
  • 1
  • 6
  • 16
9
votes
3 answers

Solidity - Invalid BigNumber string (argument="value" value="" code=INVALID_ARGUMENT version=bignumber/5.4.2)

solidity newbie here. when I try to read the value of the people array. I'm getting an error: call to SimpleStorage.people errored: Error encoding arguments: Error: invalid BigNumber string (argument="value" value="" code=INVALID_ARGUMENT…
Xaarth
  • 1,021
  • 3
  • 12
  • 34
9
votes
1 answer

Msg.sender does not work inside a "view" function, why? Is there a workaround?

I want to create a viewable function (needs to return a string to the user) that searches a mapping for msg.sender and if the senders value is x, I want the contract to proceed accordingly. It all does work inside remix but if I upload it to…
scoperationX
  • 127
  • 1
  • 9
8
votes
0 answers

Uncaught TypeError: Cannot read properties of null (reading 'useEffect')

Edit So, what turned out to be the problem? I had two instances of React and ReactDOM contributing to the served bundle of applicationB. I was misled in diagnosing the problem-space and therefore the question(s)/appeal raised below is a little…
slackermorris
  • 368
  • 3
  • 11
7
votes
2 answers

In remix Ide what does this notification means? "You have not set a script to run. Set it with @custom:dev-run-script NatSpec tag"

You have not set a script to run. Set it with @custom:dev-run-script NatSpec tag The notification message I have written a simple program of Hello World in the Remix IDE.
Ayushi George
  • 71
  • 2
  • 4
7
votes
2 answers

Error: Compiler version ^0.8.0 does not satisfy the r semver requirement

I am new to solidity and I am running code on Remix. It doesn't matter what version of compiler I specify, I keep on getting the same error. Can someone help me out? What does "Compiler version ^0.8.0 does not satisfy the r semver requirement"…
김예군
  • 169
  • 2
  • 7
7
votes
1 answer

Error when writing remix unit tests: URL not parseable: remix_accounts.sol

I'm writing unit test in remix-ide and I want to call functions from different addresses within a single test. The remix-tests Github page says that you can use import "remix_accounts.sol";, but I get URL not parseable: remix_accounts.sol. How to…
Arterm
  • 171
  • 2
6
votes
1 answer

Swap ETH to DAI using ISwapRouter from Uniswap

I am trying to get started with Uniswap V3. As an example, I took the most basic use case: Given X amount of ETH do a swap to DAI. Unfortunately, I am not being able to make it work. There is already a very similar question (with no answer) but…
Facundo La Rocca
  • 3,786
  • 2
  • 25
  • 47
6
votes
1 answer

Getting error "creation of HelloWorld errored: TypeError: Cannot convert undefined or null to object"

Pretty new to Solidity and just tried the first HelloWorld smart contract in Remix IDE and stumbled upon this error, while trying to deploy the smart contract. creation of HelloWorld pending... creation of HelloWorld errored: TypeError: Cannot…
6
votes
9 answers

REMIX | Not possible to connect to the Web3 Provider

I had an error to run on web3 provider (localhost:8545) Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). So I figured out like below. I'm running geth on my local and I gave…
rachel_hong
  • 471
  • 2
  • 6
  • 15
5
votes
1 answer

Remix submit form onChange and get live update from useActionData()

I am trying to create a remix page where i want to get live preview when i change a Select tag. It is going through a Form since i want it to translate the data. A solution to my problem could be to make preventDefault(first code example) to work or…
Sondge
  • 72
  • 4
1
2 3
48 49