Hi! Does anyone know how I can deploy my contract by solving this error "creation of ArborFinance errored: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603, "data":{"code":-32000, "message": "oversized data tx size 35920 > max size 32768"}}}'"? I've already activated the optimization but nothing works (my final contract will be at least 1.5 times longer so it doesn't help me if I can't deploy even now). I had thought of splitting my contract in two and deploying my first one using it in the second one to be able to deploy the second one too but I don't know if it's really opti

May 6, 2022, 12:03 PM
Try to use optimiser or runs . You can also refract the contract to reduce it
May 6, 2022, 12:06 PM
How I can do these things ?
I'm with remix
May 6, 2022, 12:07 PM
if it's too long it won't work
you can make 2 contracts and then make external calls between each others
May 6, 2022, 12:15 PM
You can use remix , check the compiler options , you should see runs , enable it
May 6, 2022, 12:16 PM
And it would be possible to make sure that only my second contract can use my first?
May 6, 2022, 12:16 PM
yes
May 6, 2022, 12:17 PM
I don't see the compiler options in remix ^^"
Ah mb, but dont see runs
May 6, 2022, 12:30 PM
enable optimization , it should fix your issue
May 6, 2022, 12:35 PM
I have already do that but don't work
May 6, 2022, 12:40 PM
set it ot 1
and check , if it doesn't work you should split your contract
May 6, 2022, 12:41 PM

© 2024 Draquery.com All rights reserved.