コード例 #1
0
ファイル: test_k5npkp.py プロジェクト: kengkiat/pytezos
 def test_script_parsing_formatting(self):
     actual = michelson_to_micheline(micheline_to_michelson(self.script['code']))
     self.assertEqual(self.script['code'], actual)
コード例 #2
0
ファイル: domain.py プロジェクト: yourlabsopensource/pytezos
 def from_python_object(cls, py_obj) -> 'LambdaType':
     assert isinstance(py_obj,
                       str), f'expected string, got {type(py_obj).__name__}'
     value = michelson_to_micheline(py_obj)
     return cls.from_micheline_value(value)