-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
calldata.extend(empty_bytes); | ||
calldata.extend(empty_bytes); |
There was a problem hiding this comment.
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
calldata.extend(empty_bytes); | ||
calldata.extend(empty_bytes); |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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
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())); |
There was a problem hiding this comment.
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
No description provided.