Firaenix / bsv-wasm

BSV stdlib written in Rust and runs in WASM environments
MIT License
70 stars 19 forks source link

wrong implemention OP_RETURN in interpreter #65

Open zhfnjust opened 1 year ago

zhfnjust commented 1 year ago

this test should pass:

    #[test]
    fn true_opreturn_false() {

        let script = Script::from_hex("516a00")
        .unwrap();

        let mut interpreter = Interpreter::from_script(&script);
        interpreter.run().unwrap();

        assert_eq!(interpreter.state().stack().last().unwrap(), &vec![1_u8]);
    }