Skip to main content
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
Results tagged with
Search options not deleted user 102750

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

0 votes
0 answers
28 views

Why do I get the "insufficient allowance" error when I call this function with another address?

function redeemCollateralForStreal( address tokenCollateralAddress, uint256 amountCollateral ) public { uint8 tokenDecimals = getDecimals(tokenCollateralAddress); uint256 amount = amo …
James Luiz's user avatar
2 votes
1 answer
512 views

Transfer ERC20 Tokens (USDT) from a Hacked Wallet, send gas fees and transfer tokens in 1 tr...

My wallet got compromised and I have an ERC20 USDT, so the attack on my wallet is that any ETH that enters my wallet automatically gets transferred out the next second without my notice. So I can't ha …
James Luiz's user avatar
1 vote
1 answer
2k views

Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5....

require("@nomiclabs/hardhat-ethers"); require ("dotenv").config(); /** @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: "0.8.10", networks:{ mainnet: { u …
James Luiz's user avatar
1 vote
1 answer
22 views

maticPriceInUSD returning zero, why is that, i am trying to use the chainlink to calculate p...

function getMaticAmountAndPrice(uint256 tokensToBuy, address priceFeed) public view returns (uint256, uint256) { // get the latest MATIC price in USD AggregatorV3Interface aggregator = …
James Luiz's user avatar