-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
If I want to have a setup where there is a multisig address (created with multisig_v2
module) capable of making multiple object deployments, looking at the seed generation, the derived address would always be the same, since the multisig account's sequence number does not change.
movevm/precompile/modules/minitia_stdlib/sources/object_code_deployment.move
Lines 108 to 116 in e82c4c7
inline fun object_seed(publisher: address): vector<u8> { | |
let sequence_number = account::get_sequence_number(publisher) + 1; | |
let seeds = vector[]; | |
vector::append( | |
&mut seeds, bcs::to_bytes(&OBJECT_CODE_DEPLOYMENT_DOMAIN_SEPARATOR) | |
); | |
vector::append(&mut seeds, bcs::to_bytes(&sequence_number)); | |
seeds | |
} |
Metadata
Metadata
Assignees
Labels
No labels