Guest User

Untitled

a guest
Jan 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. //Add ProductManagement ABI to allow calls
  2. contract ProductManagement{
  3. struct Part{
  4. address manufacturer;
  5. string serial_number;
  6. string part_type;
  7. string creation_date;
  8. }
  9.  
  10. struct Product{
  11. address manufacturer;
  12. string serial_number;
  13. string product_type;
  14. string creation_date;
  15. bytes32[] parts;
  16. }
  17.  
  18. mapping(bytes32 => Part) public parts;
  19. mapping(bytes32 => Product) public products;
  20.  
  21. function getParts(bytes32 product_hash) public returns (bytes32[6] memory) {}
  22. }
Add Comment
Please, Sign In to add comment