Photo by Leon Seibert on Unsplash

Deleting Data From A Smart Contract

With Ethereum we can create a stateful system, and where we can add and remove data from data stored in a smart contact. This is a stateful system, and where we change the state of the smart contact, and which will require the payment of some case to the miners. But how do we delete data?

So here’s a smart contract to add and remove strings into myArray:

--

--

--

This publication brings together interesting articles related to cyber security.

Recommended from Medium

Associated Press uses EOS and Ethereum to verify election coverage

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Prof Bill Buchanan OBE

Prof Bill Buchanan OBE

Professor Cryptography. Serial innovator. Believer in fairness, justice & freedom. EU Citizen in heart. Living by the sea. Old World Breaker. New World Creator.

More from Medium