where owner is the signer, base_erc20 will pass the ABI to the factory so he knows what functions you can call and what parameters there should be on functions

Jul 10, 2022, 8:01 PM
const Pancake_router = new ethers.Contract(pancake_router_address, pancake_router_abi, owner)
pancake_router = Pancake_router.attach(pancake_router_address);
with abi only
btw .attach i think it's optional, dunno why i have it there lol
Jul 10, 2022, 8:02 PM
Ye, you would've been fine w/o attach() here.
Jul 10, 2022, 8:17 PM
o well... it's more attached
👀
Jul 10, 2022, 8:18 PM

© 2024 Draquery.com All rights reserved.