keep-starknet-strange / shinigami

Bitcoin Script VM in Cairo
https://shinigamibtc.dev
MIT License
57 stars 56 forks source link

opcode1negate push -1 on to the stack #48

Closed mubarak23 closed 2 months ago

mubarak23 commented 2 months ago

Implemented code for opcode 1 negate that number -1 is pushed onto the stack.

mubarak23 commented 2 months ago

The test is failing because of the below error.

String literals can only include ASCII characters. on this

let expected_stack = array!["\x81"];

\x81 is a hexadecimal representation of a character with the code 129, which is not an ASCII character.

println!("dstack result: {:?}", dstack);

dstack result: ["\x81"]

@b-j-roberts

vercel[bot] commented 2 months ago

@mubarak23 is attempting to deploy a commit to the keep-starknet-strange Team on Vercel.

A member of the Team first needs to authorize it.