flow-ft icon indicating copy to clipboard operation
flow-ft copied to clipboard

Put assertions and post-conditions in the generic transactions

Open joshuahannan opened this issue 1 year ago • 0 comments

Issue To Be Solved

If we are going to encourage projects to use the generic token transactions, we should add assertions and/or post-conditions to them to make sure that they are behaving properly.

Suggest A Solution

Add these conditions:

  • Make sure the withdrawn tokens are the same type that is defined by the specified contract
  • Make sure it has the correct balance
  • Think of others

joshuahannan avatar May 20 '24 23:05 joshuahannan