> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-roethke-b20-upgrade-pages.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IB20.updateName

> Generated B20 reference for updateName(string).

## Signature

```solidity IB20.sol theme={null}
function updateName(string calldata newName) external;
```

| Field | Value |
| - | - |
| Selector | `0x84da92a7` |
| Canonical signature | `updateName(string)` |

## Description

Updates the token's `name`. Emits `NameUpdated` followed by `EIP712DomainChanged`.

## Parameters

| Parameter | Description |
| - | - |
| `newName` | New token name. |

## Reverts

* `AccessControlUnauthorizedAccount` when the caller does not hold `METADATA_ROLE`.

## Access Control

`METADATA_ROLE` gates this call.

## Policy Interaction

No direct policy interaction.

## Example

```solidity Usage Example theme={null}
IB20(target).updateName(newName);
```
