You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering why you are storing owner in a mapping. Since you set the current owner value to false when there is a transfer of ownership, why not just have a single address public owner?
The text was updated successfully, but these errors were encountered:
The single mapping allows for only one owner; which in the future may be preferable, allowing for a second layer of key management (e.g. Shamir secret + central signer).
However, the mapping(address => bool) owners; allows for multiple owners simultaneously. This is used by the GitToken webhook signer and also allows for organization admins to have ownership control.
I am wondering why you are storing owner in a mapping. Since you set the current owner value to false when there is a transfer of ownership, why not just have a single
address public owner
?The text was updated successfully, but these errors were encountered: