#[test] fn test_script() { let script = ckb_ez::core::Script::new( [ 0x82, 0xd7, 0x6d, 0x1b, 0x75, 0xfe, 0x2f, 0xd9, 0xa2, 0x7d, 0xfb, 0xaa, 0x65, 0xa0, 0x39, 0x22, 0x1a, 0x38, 0x0d, 0x76, 0xc9, 0x26, 0xf3, 0x78, 0xd3, 0xf8, 0x1c, 0xf3, 0xe7, 0xe1, 0x3f, 0x2e, ], ckb_ez::core::SCRIPT_HASH_TYPE_TYPE, vec![0x00, 0x01, 0x02, 0x03], ); assert_eq!(ckb_ez::core::Script::molecule_decode(&script.molecule()), script); } #[test] fn test_witness_args() { let witness_args = ckb_ez::core::WitnessArgs::new(Some(vec![0x00, 0x01, 0x02, 0x03]), Some(vec![0x04, 0x05, 0x06, 0x07]), None); assert_eq!(ckb_ez::core::WitnessArgs::molecule_decode(&witness_args.molecule()), witness_args); }