Etherscan status shows REVERTED.
but with no ERROR MESSAGE.
while the contract has error message in every require statement.
Can a transaction REVERT in such a way. What are the other reasons that might exist.?
May 16, 2021, 10:31 AM
You might want to console out intermediary results beyond the requirement statements.
May 16, 2021, 10:33 AM
The error is occurring at one specific Function which only has require statements initially and then a simple loop.
Moreover, all the require statements already have error messages.
Moreover, all the require statements already have error messages.
So. Can there be any specific reason behind REVERTED status with no error MESSAGE.
REVERTED happens only because of some contract error right?
REVERTED happens only because of some contract error right?
@SimonTianPhD @Lauri_P
May 16, 2021, 10:37 AM
Various code errors, such as divide by zero
In your case, I'd guess you loop over an item slot which doesn't exist
May 16, 2021, 10:38 AM
Right, Require statements do not do every checking.
Why do I get this warning in Remix when the code returns no warning or error in hardhat?
May 16, 2021, 10:41 AM
Add that comment, spdx thing in double quotes, also change ur compiler version in test.sol
May 16, 2021, 10:42 AM
May 16, 2021, 10:44 AM
Hey @Lauri_P .
I am starting to think this is the case.
So the loop that is there is this Function, starts from 0 and ends to 1. And for every loop safeMint Function of erc721 is called.
Could this be an issue.? @Lauri_P @SimonTianPhD
I am starting to think this is the case.
So the loop that is there is this Function, starts from 0 and ends to 1. And for every loop safeMint Function of erc721 is called.
Could this be an issue.? @Lauri_P @SimonTianPhD
May 16, 2021, 10:44 AM
@BeingOptimus They are there, but Remix somehow ignores them.
from 0 to 1?
May 16, 2021, 10:48 AM
Then nvm, u can still deploy in remix with those warnings ;)
May 16, 2021, 10:48 AM
@BeingOptimus It does not compile. The magical part is, if a certain chunk of code is deleted, the warning is gone. That means, the warning has nothing to do with the literal meaning of it.
May 16, 2021, 10:50 AM
Lol ,might be the issue with compiler, which version of solc r u using?
May 16, 2021, 10:50 AM
May 16, 2021, 10:50 AM
any internal transactions? errors can happen under the hood
May 16, 2021, 10:51 AM
All I get is this. Without any ERROR message. While the contract has error messages in all the reuqire statement.
Just wana know the possible reasons for such revert.
Just wana know the possible reasons for such revert.
Not necessarily an error with the contract code right. I want to know what other errors are possible? @SimonTianPhD
@SimonTianPhD
May 16, 2021, 10:52 AM
man, it would be a lot easier if you can share that chunk of code here.
May 16, 2021, 10:53 AM
texting you @SimonTianPhD
May 16, 2021, 10:55 AM
Known issue with online remix. Try changing http/https or removing some files from localstorage
May 16, 2021, 11:47 AM
you can compile anyway
May 16, 2021, 12:19 PM
oh, not with this warning.
This is like a super warning.
No compile is allowed.
May 16, 2021, 12:19 PM
Yeah its a big issue
Sometimes if you switch between contracts, the entire code will disappear
May 16, 2021, 12:21 PM
Good to know it's not just me!
For a while, I thought I was hacked or something.
like the guys from remix team tele-deleted the code.
May 16, 2021, 12:23 PM
strange I can compile anyway
May 16, 2021, 12:26 PM
why dont u test by making it unlicensed for a while?
May 16, 2021, 12:27 PM
I don't know. I ended up making a mapping public and having its getter removed. Boom, the warning is gone.
May 16, 2021, 12:31 PM
That error has nothing to do with license or version
Removing some code will help
But that too is temporary. It will come again
May 16, 2021, 12:32 PM
address
May 16, 2021, 1:41 PM
mapping (uint => uint)
All you need is a function that takes new router address and creates new pair on its factory
May 16, 2021, 3:39 PM
In latest compiler code?
May 16, 2021, 3:51 PM
What does that mean?
May 16, 2021, 3:53 PM
can't use mappings
need it to list all keys
May 16, 2021, 3:56 PM
Compatibility
May 16, 2021, 4:13 PM
If you need all keys, then huge array is the only option I think. Or if you can think of storing the keys seperately and sorted, that might be more efficient.
That wouldn't be an issue until the newly deployed router has same interface for the functions you use in your own contract
May 16, 2021, 4:19 PM