paint-brush
An Update to Solidity’s ‘Assert()’ Statement You Might’ve Missedby@zartaj
164 reads

An Update to Solidity’s ‘Assert()’ Statement You Might’ve Missed

by Md Zartaj Afser4mJuly 23rd, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A change in Solidity’s `assert()` statement that most developers are perhaps still unaware of. In previous versions of Solidity, the ‘assert()’ function used the INVALID opcode, which consumed all remaining gas in a transaction upon execution. Because of solidity 0.8.0, this difference is no longer true.
featured image - An Update to Solidity’s ‘Assert()’ Statement You Might’ve Missed
Md Zartaj Afser HackerNoon profile picture
Md Zartaj Afser

Md Zartaj Afser

@zartaj

Solidity Smart Contract Developer & Auditor

About @zartaj
LEARN MORE ABOUT @ZARTAJ'S
EXPERTISE AND PLACE ON THE INTERNET.
0-item

STORY’S CREDIBILITY

News

News

Hot off the press! This story contains factual information about a recent event.

L O A D I N G
. . . comments & more!

About Author

Md Zartaj Afser HackerNoon profile picture
Md Zartaj Afser@zartaj
Solidity Smart Contract Developer & Auditor

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite