Skip to content

Commit

Permalink
Merge pull request #204 from ethereum-optimism/feat/interop-setGasPay…
Browse files Browse the repository at this point in the history
…ingToken-rename

feat/interop: rename `GAS_PAYING_TOKEN` to `SET_GAS_PAYING_TOKEN`
  • Loading branch information
tynes authored May 24, 2024
2 parents 1267cc9 + e2d57f4 commit 3e8ebff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions specs/interop/predeploys.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,19 @@ The `ConfigType` enum is defined as follows:

```solidity
enum ConfigType {
GAS_PAYING_TOKEN,
SET_GAS_PAYING_TOKEN,
ADD_DEPENDENCY,
REMOVE_DEPENDENCY
}
```

The second argument to `setConfig` is a `bytes` value that is ABI encoded with the necessary values for the `ConfigType`.

| ConfigType | Value |
|---------------------|---------------------------------------------|
| `GAS_PAYING_TOKEN` | `abi.encode(token, decimals, name, symbol)` |
| `ADD_DEPENDENCY` | `abi.encode(chainId)` |
| `REMOVE_DEPENDENCY` | `abi.encode(chainId)` |
| ConfigType | Value |
|------------------------|---------------------------------------------|
| `SET_GAS_PAYING_TOKEN` | `abi.encode(token, decimals, name, symbol)` |
| `ADD_DEPENDENCY` | `abi.encode(chainId)` |
| `REMOVE_DEPENDENCY` | `abi.encode(chainId)` |

where

Expand Down

0 comments on commit 3e8ebff

Please sign in to comment.