Hi @PatrickAlphaC great tutorial as always!
One thing I noticed and can't get my head around is that to deploy dTSLA we need to provide the js code in the constructor, but the redeem js code contains the contract address that we get after deploying.
Seems like a 🐔 and 🥚 problem.
Would any of these two options fix the issue? 🤔
- Either set an update function to set the updated reedem code js code after deploy, or pass it as a variable on the
sendRedeemRequest function.
- Deploy with create2 so we can know which address is going to be deployed beforehand so it can containt the correct RWA contract address?