Contract con_msg_store_newest


Contract Code


  
1 storage = Hash()
2
3 @export
4 def store_msg(recipient_address: str, msg: str):
5 td = now - datetime.datetime(1970, 1, 1, 0, 0, 0)
6 storage[recipient_address, td.seconds] = msg
7

Byte Code

e30000000000000000000000000400000040000000732800000065006400640164028d025a016502640083016503650364039c0264046405840483015a04640653002907da14636f6e5f6d73675f73746f72655f6e6577657374da0773746f726167652902da08636f6e7472616374da046e616d652902da11726563697069656e745f61646472657373da036d7367630200000000000000030000000800000043000000732a000000740074016a01640164026402640364036403830618007d027c0174027c007c026a0366023c006400530029044e69b2070000e901000000e9000000002904da036e6f77da086461746574696d65da095f5f73746f72616765da077365636f6e6473290372050000007206000000da027464a900720e000000da00da0973746f72655f6d73670400000073040000000002180172100000004e2905da0448617368720b000000da085f5f6578706f7274da037374727210000000720e000000720e000000720e000000720f000000da083c6d6f64756c653e0100000073040000000c030601