Skip to content

Commit

Permalink
fix(build): Compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidLuckylee committed Dec 14, 2022
1 parent a3845b3 commit 1f5bea1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/chain_proof/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func main{

// Validate the previous chain proof
recurse(next_state.chain_state.block_height, program_hash, program_length, prev_state);

// Print the next state
serialize_chain_state(next_state.chain_state);
serialize_array(next_state.utreexo_roots, UTREEXO_ROOTS_LEN);
Expand Down
2 changes: 1 addition & 1 deletion src/chain_proof/recurse.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func recurse{pedersen_ptr: HashBuiltin*, range_check_ptr, bitwise_ptr: BitwiseBu
let (mem_values: felt*) = alloc();
let mem_length = pub_inputs.fin._pc;
read_mem_values(
mem=&pub_inputs.mem, address=pub_inputs.init._pc, length=mem_length, output=mem_values
mem=pub_inputs.mem, address=pub_inputs.init._pc, length=mem_length, output=mem_values
);

// 2. Compute the program's hash and compare it to the `expected_program_hash`
Expand Down
3 changes: 2 additions & 1 deletion src/transaction/transaction.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ func validate_output{range_check_ptr, utreexo_roots: felt*, hash_ptr: HashBuilti
// See also:
// - https://developer.bitcoin.org/devguide/transactions.html#signature-hash-types
//
func write_transaction{writer: Writer, range_check_ptr}(transaction: Transaction) {
func write_transaction{writer: Writer, range_check_ptr, bitwise_ptr: BitwiseBuiltin*}(transaction: Transaction) {
alloc_locals;
write_uint32(transaction.version);

write_varint(transaction.input_count);
Expand Down

0 comments on commit 1f5bea1

Please sign in to comment.