-
Hi so I've recently gotten the Foundry SmartContractLottery to deploy on Sepolia. I got it to work with hard coding my subId from VRF UI but then tried to deploy using 0 so the script would create one for me. It looks like my script created a subscription successfully but ran into issues sending the LINK, I'm guessing it's bc there isn't an approval step in my code. Can someone help me figure out where/how I would implement this? Would it be in helperConfig.s.sol or interactions.s.sol? Thanks
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hello, the process will always fail if you have your subId set to |
Beta Was this translation helpful? Give feedback.
Hello, the process will always fail if you have your subId set to
0
and run the process on the sepolia chain and that will always happen because ofFoundry
on-chain simulation. Here foundry-rs/foundry#2522 is the discussion about this issue on the officialFoundry
page.