Need some help here 😊 I'm working on Pancake AMM, when i deploy the router as a multi file contract, all works fine on UI, if i flatten the router, then it fails when the user removes liquidity, all other functions works. get the err estimateGas failed 0 removeLiquidityETHWithPermit in console. Anyone knows what is up with that ?
Sep 26, 2021, 9:43 AM
What do you want to achieve?
Sep 26, 2021, 9:44 AM
It's the verifying process i'm worried about, the chain im deploying on doesn't even have a real block explorer yet.
I know a flatten file will be supported from the get go
Sep 26, 2021, 9:49 AM
The error is not related to your contract being verified or not tbh
Sep 26, 2021, 9:55 AM
I know that.. I get the error when the contract is flatten(single file), when it is not flatten(multifile), then it works
Sep 26, 2021, 9:57 AM
Whaaat :))? Are you sure)??
Its not really possible
Technically
If this is the case then go with multifile
Sep 26, 2021, 9:58 AM
im not sure i can verify that later on
Sep 26, 2021, 10:00 AM
Why?
Sep 26, 2021, 10:00 AM
because it's a new chain, dosn't have block explorer yet, don't know if they will support multifile in the beginning
Sep 26, 2021, 10:02 AM
Dude I see you tripping, you didn't even verify multifile 🤦🏻♂️ but you tell me you did, wtf is this
Sep 26, 2021, 10:03 AM
Changed init hash?
Sep 26, 2021, 10:03 AM
Nah he doesn't understand what he's doing
Sep 26, 2021, 10:03 AM
yeah i changed INIT
Sep 26, 2021, 10:04 AM
Cloned UI as well?
Sep 26, 2021, 10:04 AM
One last time, the error is not related to your contract being verified multifile or inline
Sep 26, 2021, 10:05 AM
yes
Sep 26, 2021, 10:05 AM
+ have you made changes on pair contract?
Anything at all
Sep 26, 2021, 10:05 AM
no change
im testing on BSC, i can verify there ofcourse
only when i try remove liquidity, all other works on the flatten contract
Sep 26, 2021, 10:06 AM
There was something you should change on UI
Sep 26, 2021, 10:06 AM
Did you try calling the functions from bscscan instead of ui?
Sep 26, 2021, 10:06 AM
I don't remember where, it concerns the lp contract
That's why the signing is failing
+check if you can manually sign the transaction and send it via bscscan
Sep 26, 2021, 10:09 AM
ill try
I get this err Fail with error ': INVALID_SIGNATURE'.. i might be doing that wrong tho
err was on ui, index.tsx, only took me 12 hour to figure out lol. thanks for taking time to answer mate 😊
Anyone know how to change network on Pancake AMM, i changed .env, and chainId in constants.ts in SDK already, what am i missing ?
Sep 27, 2021, 12:21 AM
sometimes are on env.development, env.produtiction envs
Sep 27, 2021, 3:21 AM
i changed them both, still don't seem to work
got it done, i missed changing chain in index.js, in connecters.. Thanks for taking time for answering tho 😊
Sep 27, 2021, 5:21 AM
Good
Sep 27, 2021, 5:36 AM