Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat : Safe Proxy changes and Wallet init changes #5

Merged
merged 4 commits into from
Jun 27, 2024

Conversation

ocdbytes
Copy link
Member

No description provided.

Comment on lines +146 to +147
calldata.extend(empty_bytes);
calldata.extend(empty_bytes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add comments on what these empty bytes represent

Comment on lines +169 to +170
calldata.extend(empty_bytes);
calldata.extend(empty_bytes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

program_hash: convert_felt_to_u256(program_hash), // zero program hash would be deemed invalid
verifier_address: Address::zero(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeh bhi argument mein le lete hai

Comment on lines 110 to 122
let program_hash = StarkFelt(program_hash.to_bytes_be());

let init_data = Self::get_init_data_core_contract(block_number, state_root, program_hash, config_hash);

let mut zero_address_bytes = Address::zero().encode();
let bytes: Vec<u8> = <CoreContractInitData as Into<Vec<u8>>>::into(init_data.clone());
for x in bytes {
zero_address_bytes.push(x);
}

let final_bytes = zero_address_bytes;

log::debug!("ℹ️ upgrade_to : data : {:?} : {:?}", init_data, Bytes::from(final_bytes.clone()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks same as above, should we move it to a function

@ocdbytes ocdbytes merged commit d3b2d33 into main Jun 27, 2024
5 checks passed
@ocdbytes ocdbytes deleted the feat/braavos-wallet-init branch August 6, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants