smart_contract icon indicating copy to clipboard operation
smart_contract copied to clipboard

Check that calls on external contracts did what we expected

Open mmhh1910 opened this issue 7 years ago • 0 comments

When calling functions in other contracts we make assumptions about what happens there, e.g. with our calls:

Token(token).transfer(msg.sender, amount) Token(token).transferFrom(msg.sender, this, amount)

We should check after these calls, if what we expected actually happened, e.g. after Token(token).transferFrom(msg.sender, this, amount) we expect amount more tokens in our contract than before.

mmhh1910 avatar Mar 10 '18 08:03 mmhh1910