Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: warn if collateral return is not owned by account
It's currently possible for an adversarial DApp to craft a transaction that intentionally consumes collateral, with the return owned by an address it controls. This fix reduces the risk by warning the user, however we cannot block the transaction given the collateral could be provided by another source. Ideally we could block if the return is not being sent to the input supplier, but that would require a costly input resolution, which is not acceptable here.
- Loading branch information