Advanced Solidity Tutorial: Unit Testing Contract Call Reverts in Remix

in #ethereum6 years ago

Here's a more advanced tutorial on some of the finer points of unit testing with Solidity - What do you do when you want to test whether an assertion or require() call fails? In this video I'll show you how to use an intermediate proxy contract and lower-level Solidity calls to let your Solidity tests continue executing when a contract call is reverted. Let me know if you have any questions and if you found this useful - thanks!

Sort:  

Thanks for the video! I suggest a topic: deferred transactions. So trigger a transaction in future if some condition are met.

Thanks for the idea Luigi! Sounds like a great topic - look out for it in a week or two!

Hello! Your post has been resteemed and upvoted by @ilovecoding because we love coding! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On!

Reply !stop to disable the comment. Thanks!

Congratulations @danlipert! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of comments

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard - Witness Update

Support SteemitBoard's project! Vote for its witness and get one more award!

@danlipert, I do not understand anything written

:( whats up renat? anything I can clear up for you?

You got a 3.86% upvote from @upme thanks to @danlipert! Send at least 3 SBD or 3 STEEM to get upvote for next round. Delegate STEEM POWER and start earning 100% from your share, daily payouts ( no commission ).
Quick delegation links: 25SP | 50SP | 100SP | 250SP | 500SP | 1000SP | 2000SP | 5000SP | Custom Amount

Congratulations @danlipert! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 62980.19
ETH 3123.74
USDT 1.00
SBD 3.87