Contract con_msg_store_new


Contract Code


  
1 random.seed()
2
3 storage = Hash()
4
5 @export
6 def store_msg(recipient_address: str, msg: str):
7 storage[recipient_address, hashlib.sha256(str(now))] = msg
8

Byte Code

e30000000000000000000000000400000040000000733000000065006a018300010065026400640164028d025a036504640083016505650564039c0264046405840483015a06640653002907da11636f6e5f6d73675f73746f72655f6e6577da0773746f726167652902da08636f6e7472616374da046e616d652902da11726563697069656e745f61646472657373da036d7367630200000000000000020000000600000043000000731a0000007c0174007c0074016a02740374048301830166023c006400530029014e2905da095f5f73746f72616765da07686173686c6962da06736861323536da03737472da036e6f77290272050000007206000000a900720c000000da00da0973746f72655f6d73670500000073020000000002720e0000004e2907da0672616e646f6dda0473656564da04486173687207000000da085f5f6578706f7274720a000000720e000000720c000000720c000000720c000000720d000000da083c6d6f64756c653e01000000730600000008010c030601