Hi guys
I am stuck I can't solve an error I have on Remix
I don't understand, yesterday it seemed to work and today I have an error message...
I am trying to deploy a contract or Arbitrum Goerli or Arbitrum. Using adapted Camelot Router/Factory
I have this error message on both transactions:

May 13, 2023, 11:36 AM
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Returned error: {"jsonrpc":"2.0","error":"invalid opcode: PUSH0","id":6119467112710341}
Anyone knows something about that please ? πŸ™πŸ™
May 13, 2023, 11:37 AM
are you using 0.8.20 ?
May 13, 2023, 11:39 AM
Yes
I shouldn't?
May 13, 2023, 11:40 AM
not on those chains
they don't support PUSH0 yet
only eth mainnet does
so use 0.8.19
May 13, 2023, 11:42 AM
What is PUSH0 ?
May 13, 2023, 11:42 AM
https://blog.soliditylang.org/2023/05/10/solidity-0.8.20-release-announcement/
May 13, 2023, 11:44 AM
It's working, thanks mate πŸ™
May 13, 2023, 11:44 AM
using SafeERC20 for IERC20
IERC20 private immutable WETH

Using the SafeERC20 wrapper, shouldn't I be able to call safeTransferFrom()?
May 13, 2023, 11:44 AM
just a new shortcut to make deployments a bit cheaper
May 13, 2023, 11:47 AM
An opcode
It pushes 0 into a stack, before it you had to use PUSH1 00 which are 2 bytes (6000) now you reach the same with PUSH0 (5f)
May 13, 2023, 11:58 AM
Anyone πŸ₯²
May 13, 2023, 12:17 PM
Okok I see, thanks πŸ’ͺ
May 13, 2023, 12:23 PM
moralis?
May 13, 2023, 1:01 PM
where'd you read that?
in sol docs?
May 13, 2023, 1:13 PM
i just knowπŸ˜…
push0 is available only on eth mainnet for now
May 13, 2023, 1:14 PM
since 2021?
May 13, 2023, 1:16 PM
what?
May 13, 2023, 1:21 PM
The date, this opcode's been used
May 13, 2023, 1:21 PM
nope
https://iq.wiki/wiki/eip-3855
May 13, 2023, 1:23 PM
thx
ah, it was discussed in 2021, implemented now
May 13, 2023, 1:24 PM
yep
with shangai
you have v2 too
the address is the same of mainnet
0x7ac..
May 13, 2023, 2:06 PM
yeah ofc
I assumed you were talking about feeless tokens since you said you are using v3
May 13, 2023, 2:09 PM
yeah my mistake i haven't read the full docs before testing on v3, since i could not find the testnet for v2 i went ahead with it
May 13, 2023, 2:13 PM
guys I highly suggest to check http://rabby.io/
May 13, 2023, 3:24 PM
Does it support gasless tx?
May 13, 2023, 3:47 PM
@minefolelser https://vxtwitter.com/msolomon44/status/1656411871635972096?t=edzyEuG_XvYyJxsnCoeCCQ&s=19
never tried
May 13, 2023, 4:02 PM
1inch supports gasless swap
May 13, 2023, 4:02 PM
yes I mean with this wallet
i just started using it
May 13, 2023, 4:02 PM
As long as you can sign a message
May 13, 2023, 4:04 PM
Idk, gasless tx should be a feature for wallets
May 13, 2023, 4:04 PM
exactly
May 13, 2023, 4:06 PM
Thanks!
May 13, 2023, 4:06 PM
it is like metamask but OP
May 13, 2023, 4:06 PM
Which one
Rabby
May 13, 2023, 4:06 PM
Use sepolia
Another testnet with more generous faucets and less expensive gas fees
Enough with this airdrop bs
Use your airdrop hunters groups for that
May 13, 2023, 4:11 PM
not for airdrop hunting, but ok I get it
y'all busy
May 13, 2023, 4:12 PM
Have u read the group rule?
May 13, 2023, 4:13 PM
a chain?
lol
show me please
May 13, 2023, 4:13 PM
This is annoying, people should learn to rely on others as last resource especially for bs like that
May 13, 2023, 4:14 PM
well I thought I will get alteast a little help
May 13, 2023, 4:14 PM
for?
like and retweet? I don't see any help needed
May 13, 2023, 4:15 PM
engagements🀑
May 13, 2023, 4:15 PM
Airdrop
May 13, 2023, 4:15 PM
try and see what will happenπŸ˜’
May 13, 2023, 4:16 PM
I wont
May 13, 2023, 4:16 PM
The airdrop hunters should get a job, they spam everywhere
May 13, 2023, 4:16 PM
not hunting, for own memecoin project attempt twitter handle
May 13, 2023, 4:17 PM
What are the utilities?
May 13, 2023, 4:18 PM
A simple Blog and Profile NFTs
May 13, 2023, 4:18 PM
I just said sepolia chain
May 13, 2023, 4:19 PM
No utilities
May 13, 2023, 4:19 PM
NFT-Fi , NFT can be used to store the token (fee on that), and when staking the NFTs apy will be boosted according to the stored value
but yeah it doesnt go with you guys's views, as the token have a small tx fee
May 13, 2023, 4:21 PM
And where are these apys coming from?
May 13, 2023, 4:22 PM
token tax
and the collateral adding fee
haha lol when thinking clearly it looks like a ponzi plan
May 13, 2023, 4:23 PM
My view is pretty straight forward,
Create better projects with good utilities and no tx fee,
It'd benefit everyone
But the current ecosystem is full of shitcoins
May 13, 2023, 4:23 PM
I have a project in mind from quite a long time, but I lack the funds and management skills needed to do so, that's why thought of trying to launch a memecoin as those are cheaper to launch and manage with less things/goals to attend to then a serious project... and get the initial funds needed to do to....

My main project plan is a Culture Based project with aim to represent my local Assamese culture through the crypto ecosystem
well thats all, I'd Appreciate any help and I have no intention to scam or get rich quick, just to get enough funds to smoothen that process as well as gain some actual market/launcing experience.
May 13, 2023, 4:28 PM
Sounds interesting but can't tell how successful it would be
May 13, 2023, 4:29 PM
Yes, Crypto is lacking cultural representation
all shit everywhere
I am not worried about the success of that project now, even if it fails to get massive attetion, atleast being able to launch it without problems would atleast ensure the representation of Assam
May 13, 2023, 4:31 PM
have you ever thought about integrating on an already existing project as a developer to gain experience before launching yours?
May 13, 2023, 4:31 PM
I tried but I do not have that much connections or Skills and Expertise , Also I am still a beginner on Web Development as a whole that's why a simple doable project like a memecoin would give me a whole lot of valuable experience
well thanks and I really appreciate for the talk and the time to listen to the problem, but I don't mind if you guys dont wanna like and Rt I understand as I also have my ideals and views and I respect yours. Bye gotta go
May 13, 2023, 4:35 PM
yep, just remember this is a solidity group =)
it's ok to go off-topic for a little but a twitt is totally out of the scope for that group
May 13, 2023, 4:39 PM
πŸ˜ƒI am banned from most crypto related groups due to my nature to spam and critisize projects
okay noted βœ…
May 13, 2023, 4:40 PM
let's keep that list as it is then
May 13, 2023, 4:44 PM
P2PLending.length (set = null)=>(3)
P2PLending._length (set = null)=>(3)


P2PLending.at(set = null, index = 0)=>(0x6586aaaf9ce2ee33c84049bf97702fbba4390dc2)
P2PLending._at(set = null, index = 0)=>(0x0000000000000000000000006586aaaf9ce2ee33c84049bf97702fbba4390dc2)

P2PLending.remove(set = null, value = 0x6586aaaf9ce2ee33c84049bf97702fbba4390dc2)=>(true)
P2PLending._remove(set = null, value = 0x0000000000000000000000006586aaaf9ce2ee33c84049bf97702fbba4390dc2)=>(true)


P2PLending.at(set = null, index = 1)=>(0xc2503240d0a8beb0d94a7f67220bc8858cf43c33)
P2PLending._at(set = null, index = 1)=>(0x000000000000000000000000c2503240d0a8beb0d94a7f67220bc8858cf43c33)

P2PLending.remove(set = null, value = 0xc2503240d0a8beb0d94a7f67220bc8858cf43c33)=>(true)
P2PLending._remove(set = null, value = 0x000000000000000000000000c2503240d0a8beb0d94a7f67220bc8858cf43c33)=>(true)


P2PLending._at(set = null, index = 2)=>()
REVERT
P2PLending._at(0x)=>()
This is from Tenderly
My contract function failure seems to be coming from the EnumerableSet data
At index 2, apparently, there is no address
I don't know how that happened or something
May 13, 2023, 4:47 PM
no useful info in there, send the tx hash
May 13, 2023, 4:47 PM
https://mumbai.polygonscan.com/tx/0x19ce9ea08cc233efbb9c54ba1f5f1f2a71a7036e2bc3f01f19ef907f1ad5f733
May 13, 2023, 4:48 PM
hardhat comes latter , well yeah remix vm is also free and easy for beginners
May 13, 2023, 4:49 PM
he is not refering to remix or hardhat lol
May 13, 2023, 4:50 PM
seems something wrong with your loop
May 13, 2023, 4:50 PM
issue is the set
it fails at "_at"
May 13, 2023, 4:50 PM
It's what I shared too
There seems to be nothing at index 2
P2PLending._at(set = null, index = 2)=>()
REVERT
P2PLending._at(0x)=>()
Nothing seems stored at index 2. Which should be impossible πŸ˜•
May 13, 2023, 4:52 PM
that's the inner revert, the problem is not in the _at itself, it goes out of index i guess
May 13, 2023, 4:52 PM
hehe he is using goerli, just what tutorials told him to
May 13, 2023, 4:53 PM
yep I meant that there is some issue with his set
probably missing value
May 13, 2023, 4:54 PM
It is missing a value at index 2
But this value was set, and should be present
@lIIIIlIlIlIlII raised a good point
I don't know if it's valid?
May 13, 2023, 4:55 PM
but hate is only for scammers
May 13, 2023, 4:57 PM
web3 development pays well, specially with experience
May 13, 2023, 4:57 PM
money will come automatically
May 13, 2023, 4:58 PM
please send me some goerli eth
😝😝
May 13, 2023, 4:59 PM
hahaha yes thh
then you get rich on goer,i
May 13, 2023, 4:59 PM
I'll take mainnet eth, if you don't have
May 13, 2023, 4:59 PM
goerli
just look at ever shit memecoin that make 100x
early in late out
May 13, 2023, 5:00 PM
okok let's go
Solidity Dev chat here
May 13, 2023, 5:01 PM
That's pretty much against the group policy
May 13, 2023, 5:01 PM
/warn stop please
May 13, 2023, 5:01 PM
User Champion has 2/3 warnings; be careful!
Reason:
stop please
May 13, 2023, 5:01 PM
@FreezyEth
May 13, 2023, 5:01 PM
I am out now
try and see no?
no better way to learn
try -> make an error-> repeat
May 13, 2023, 5:02 PM
Will do boss πŸ™‡πŸΎβ€β™‚οΈ
May 13, 2023, 5:02 PM
Error Driven Development πŸ‘
May 13, 2023, 5:03 PM
2nd language I learnt after C
Been a long time I did something worthwhile with the language though
May 13, 2023, 5:05 PM
yea
May 13, 2023, 5:06 PM
I also like having versatility
Just so y'all know, I'm a farmer 😌
Studied Animal Production πŸ˜‘
I'm here for the tech 😁
May 13, 2023, 5:09 PM
Farming is a great business, programming is depressing
At least you don't have to debug for days or weeks
May 13, 2023, 5:10 PM
In a country like Nigeria with no government incentives, favorable conditions, available resources, one will need to expand the idea
One little pest incursion destroys months of hard work πŸ₯²
Going off topic πŸ₯²
May 13, 2023, 5:12 PM
yah you do the most important job, produce food
May 13, 2023, 5:24 PM
Learning yield farming must be easy af then
May 13, 2023, 5:25 PM
agreed, the debugging , specially when learning really gets depressing
May 13, 2023, 5:25 PM
wagmi or foundry?
May 13, 2023, 5:27 PM
Ik both, but what is foundry chain
That idk
BSC too
And test using that
Thanks
May 13, 2023, 5:29 PM
You welcome πŸ˜„
May 13, 2023, 5:31 PM
local network
I fork mainnet with anvil
May 13, 2023, 5:32 PM
On foundry?
May 13, 2023, 5:32 PM
the chain is then exposed on the anvil default port
so just add the rpc to the wallet
anvil is part of foundry yes
May 13, 2023, 5:32 PM
Oh ok
May 13, 2023, 5:32 PM
do you have foundry installed?
May 13, 2023, 5:33 PM
No man. I use hardhat. But I'll install it
May 13, 2023, 5:33 PM
ah ok nvm
May 13, 2023, 5:33 PM
Do u prefer foundry over hardhat
May 13, 2023, 5:34 PM
for hardhat follow krakovia message
depends on the case
for wagmi, I choose foundry because Paradigm is behind both
May 13, 2023, 5:34 PM
Okay
May 13, 2023, 5:34 PM
We really do learn every day πŸ™‚
@lIIIIlIlIlIlII thanks for the input
May 13, 2023, 5:37 PM
screenshot please
May 13, 2023, 6:35 PM
what to do when a contract exceeds the byte limit?
I'm confused how libraries can help in that, won't it be same?
May 13, 2023, 7:56 PM
enable optimization
May 13, 2023, 7:56 PM
and how to set thay up, I mean how to set the runs
May 13, 2023, 7:56 PM
what do you mean?
May 13, 2023, 7:57 PM
I mean by default Solidity optimizes to 200 runs, what exactly does that mean, and what to set there if the contract size exceeds limit
May 13, 2023, 7:57 PM
you exceedrd the size with optimization on?
May 13, 2023, 7:58 PM
yes, it's the default values
isn't it bt default 200 runs?
May 13, 2023, 7:58 PM
btw the higher you set, the higher you will pay at deployment, but lower will be the gas usage
yes just leave it if you don't plan to have milions of tx
May 13, 2023, 7:59 PM
oh
May 13, 2023, 7:59 PM

Β© 2024 Draquery.com All rights reserved.