AccessList.fromTupleList
Converts a list of Access List tuples into a object-formatted list.
Imports
Named
import { AccessList } from 'ox'
Examples
import { AccessList } from 'ox'
const accessList = AccessList.fromTupleList([
[
'0x0000000000000000000000000000000000000000',
[
'0x0000000000000000000000000000000000000000000000000000000000000001',
'0x60fdd29ff912ce880cd3edaf9f932dc61d3dae823ea77e0323f94adb9f6a72fe',
],
],
])
[ { address: '0x0000000000000000000000000000000000000000', storageKeys: [ '0x0000000000000000000000000000000000000000000000000000000000000001', '0x60fdd29ff912ce880cd3edaf9f932dc61d3dae823ea77e0323f94adb9f6a72fe', ], }, ]
Definition
function fromTupleList(
accessList: AccessList.Tuple,
): AccessList
Source: src/AccessList.ts
Parameters
accessList
- Type:
AccessList.Tuple
List of tuples.
Return Type
Access list.
AccessList