Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about Remix, an online browser compiler for Solidity, formerly called Browser Solidity.
0
votes
Unable to make Re-entrancy attack using solidity code. Ethernaut Openzeppelin
Remove gas from your attack function, and change the fallback() payable to receive() payable. The contract will work without any errors. Although you have some bugs in your contract. You mentioned in …
0
votes
Accepted
Is there something like remix for deployed contracts
You can do that in remix too. …
2
votes
Accepted
Inputting an Array value in Remix
I have tried your code and figured out how the inputs should be provided. You just need to send a variable array of arrays containing exactly 4 elements. For example,
[[1,2,3,4],[5,6,7,8],[9,10,11,12] …
0
votes
Getting ParserError
You are missing a closing parenthesis. Just add one at the end and your code will be good to go.
Edit: Please confirm if this is your final code
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0 …
1
vote
Accepted
TypeError: Overriding function changes state mutability from "view" to "nonpayable"
I don't think you can use "view" in the abstract contract you have defined at the top. The template you are using is for the interfaces. Interfaces provide overriding with "view" funcitonality, but no …
1
vote
Accepted
invalid opcode: REVERT
The problem is that you are trying to deploy the contract with the 100 wei amount. The 1_Storage.sol contract doesn't have a payable constructor, so it doesn't need any amount of ETH as input.
Just se …
0
votes
Accepted
Sepolia - no return data - contract function
Getting returned data from a function that potentially changes the state of the blockchain is impossible. This is one of the limitations of Solidity. That's why the function is returning the full bloc …
0
votes
function depositTokens doesnt work in remix ethereum , please help
You can see the error right there. insufficient allowance. As you can see, you are using transferFrom() function in the depositTokens() function. For using transferFrom, you need to first approve the …
1
vote
Accepted
Payable function won't get executed (gas estimation fails)
That's not how a contract works. You are using payable keyword in the function. That means it is expecting an ETH value. You cannot use .transfer() method and try to send the ETH to the contract. The …
0
votes
Is there any standard to burn these tokens?
I don't think this can be a standard, since it disrupts the core feature of blockchain, ie, the removal of a central authority. If you give that right to anyone other than the token owner, it will be …
1
vote
Accepted
Data location must be "calldata" for parameter in external function, but none was given. -->...
There are multiple errors in your code. Apparently, you have not declared variables and mappings (that's why the undeclared variable error). Create a mapping of allowed if you want to use it.
mapping( …
1
vote
how to fix the phrase error: Expected ','but got ;
You are missing a parenthesis or round bracket in your code.
policyHolder.notify("Payout triggered! You will receive: " + uint256(payoutAmount));
Although, this code has multiple errors, not declarin …
0
votes
Accepted
How to mint tokens from existing contracts using Solidity
You need to copy the contract's code, paste it on remix, and create and instance of the contract on the same address as it is already deployed to (Also the same chain). …
1
vote
token.transferFrom() Will Not Work with ERC20 Token
I tested your contract and it seems fine. But I still encountered the error you mentioned. The issue with my deployment was that I forgot to update the token address in the PurchaseTicket contract.
IE …