Skip to content

AccessList.toTupleList

Converts a structured Access List into a list of tuples.

Imports

Named
import { AccessList } from 'ox'

Examples

import { AccessList } from 'ox'
 
const accessList = AccessList.toTupleList([
  {
    address: '0x0000000000000000000000000000000000000000',
    storageKeys: [
      '0x0000000000000000000000000000000000000000000000000000000000000001',
      '0x60fdd29ff912ce880cd3edaf9f932dc61d3dae823ea77e0323f94adb9f6a72fe'],
  },
])
[
[
'0x0000000000000000000000000000000000000000',
[
'0x0000000000000000000000000000000000000000000000000000000000000001',
'0x60fdd29ff912ce880cd3edaf9f932dc61d3dae823ea77e0323f94adb9f6a72fe',
],
],
]

Definition

function toTupleList(
  accessList?: AccessList | undefined,
): Compute<Tuple>

Source: src/AccessList.ts

Parameters

accessList

  • Type: AccessList | undefined
  • Optional

Access list.

accessList.address

  • Type: abitype_Address

accessList.storageKeys

  • Type: readonly 0x${string}[]

Return Type

List of tuples.

Compute<Tuple>