Paintings Record

DOCUMENTSTOOLSUTILITY

Contract purpose

Contract that keeps track of expansive paintings

Contract parameters

manager : address of the record manager

Exposed methods and variables

addPainting : allows the manager to introduce a new painting to the list

parameter nametypedetails
_idintegerthe unique id of the painting
_namestringthe name of the painting
_lenintegerthe length of the painting
_widthintegerthe width of the painting
_dateintegerthe date when the painting was created
_painterstringthe name of the painter

getPaintingDetails : returns the details of a particular painting

parameter nametypedetails
_idintegerthe unique id of the painting

getMostRecent : returns the name, painter and date of the most recently created painting

parameter nametypedetails
_idintegerthe unique id of the painting
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract