File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
domains/pallets/evm-tracker/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ mod pallet {
90
90
#[ pallet:: hooks]
91
91
impl < T : Config > Hooks < BlockNumberFor < T > > for Pallet < T > {
92
92
fn on_finalize ( _now : BlockNumberFor < T > ) {
93
- // clear the storage since we would start with updated nonce
93
+ // clear the nonce storage, since we would start with updated nonce
94
94
// during the pre_dispatch in next block
95
95
let _ = AccountNonce :: < T > :: clear ( u32:: MAX , None ) ;
96
96
}
@@ -108,12 +108,12 @@ impl<T: Config> Pallet<T> {
108
108
AccountNonce :: < T > :: set ( account, Some ( nonce) )
109
109
}
110
110
111
- /// Returns true if the account is allowed to create contracts.
111
+ /// Returns true if the supplied account is allowed to create contracts.
112
112
pub fn is_allowed_to_create_contracts ( signer : & T :: AccountId ) -> bool {
113
113
ContractCreationAllowedBy :: < T > :: get ( ) . is_allowed ( signer)
114
114
}
115
115
116
- /// Returns true if the account is allowed to create contracts.
116
+ /// Returns true if any account is allowed to create contracts.
117
117
pub fn is_allowed_to_create_unsigned_contracts ( ) -> bool {
118
118
ContractCreationAllowedBy :: < T > :: get ( ) . is_anyone_allowed ( )
119
119
}
You can’t perform that action at this time.
0 commit comments