Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add ProductManagement ABI to allow calls
- contract ProductManagement{
- struct Part{
- address manufacturer;
- string serial_number;
- string part_type;
- string creation_date;
- }
- struct Product{
- address manufacturer;
- string serial_number;
- string product_type;
- string creation_date;
- bytes32[] parts;
- }
- mapping(bytes32 => Part) public parts;
- mapping(bytes32 => Product) public products;
- function getParts(bytes32 product_hash) public returns (bytes32[6] memory) {}
- }
Add Comment
Please, Sign In to add comment