Skip to content

Commit

Permalink
Updating based on make fmt results.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Chatham committed Dec 11, 2024
1 parent 52f4546 commit f49e96f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion chainio/clients/elcontracts/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,11 @@ func (r *ChainReader) IsPendingAdmin(
accountAddress gethcommon.Address,
pendingAdminAddress gethcommon.Address,
) (bool, error) {
isPendingAdmin, err := r.permissionController.IsPendingAdmin(&bind.CallOpts{Context: ctx}, accountAddress, pendingAdminAddress)
isPendingAdmin, err := r.permissionController.IsPendingAdmin(
&bind.CallOpts{Context: ctx},
accountAddress,
pendingAdminAddress,
)
if err != nil {
return isPendingAdmin, errors.New("call to permission controller failed: " + err.Error())
}
Expand Down
5 changes: 4 additions & 1 deletion chainio/clients/elcontracts/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,10 @@ func (w *ChainWriter) RemoveAdmin(ctx context.Context, request RemoveAdminReques
return receipt, err
}

func (w *ChainWriter) RemovePendingAdmin(ctx context.Context, request RemovePendingAdminRequest) (*gethtypes.Receipt, error) {
func (w *ChainWriter) RemovePendingAdmin(
ctx context.Context,
request RemovePendingAdminRequest,
) (*gethtypes.Receipt, error) {
if w.permissionController == nil {
return nil, errors.New("permission contract not provided")
}
Expand Down

0 comments on commit f49e96f

Please sign in to comment.