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

# IB20.updateName

> Generated B20 reference for updateName(string).

[Related concept](/base-chain/specs/upgrades/beryl/b20)

## Signature

```solidity 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`.
Dev: Reverts with `AccessControlUnauthorizedAccount` when the caller does not hold `METADATA_ROLE`.
Param: newName New token name.

## Access control

`METADATA_ROLE` gates this call.

## Policy interaction

No direct policy interaction.

## Example

```solidity theme={null}
IB20(target).updateName(arg0);
```

## Related

* [IB20 reference](/base-chain/specs/upgrades/beryl/b20/specification/reference/interfaces/IB20)
* [Constants & addresses](/base-chain/specs/upgrades/beryl/b20/specification/reference/constants-and-addresses)
