Update Ownership library documentation for setting ownership on deployment
bitzoic opened this issue · 0 comments
bitzoic commented
Motivation
Description
You can now set ownership on deployment without needing to call the set_ownership()
or a constructor function. To set the ownership on deployment, add the address to the storage block:
storage {
owner: Ownership = Ownership::initalized(Identity::Address(Address::from(0x0000000000000000000000000000000000000000000000000000000000000000))),
}
Motivation
This is shown in the inline documentation but not documented properly in the README.