bridge
bridge copied to clipboard
Fix #1141 - L1 spawn issues
- Closes #1141
- The call to the roller was throwing an error for a newly spawned L1 point since it didn't yet know it existed. The try / catch block wasn't set up in a way to properly handle the error, so it wasn't checking the chain when the point couldn't be found in roller state.
- This fix checks the chain when the roller doesn't return the point, and if it exists then it returns the point using on-chain data.
Thanks for looking into this. Looks like the right solution to me but will defer to @pkova to review/merge/deploy.