AddressTableLookup constructor

AddressTableLookup({
  1. required SolAddress accountKey,
  2. required List<int> writableIndexes,
  3. required List<int> readonlyIndexes,
})

Constructor to create an AddressTableLookup instance.

Implementation

AddressTableLookup({
  required this.accountKey,
  required List<int> writableIndexes,
  required List<int> readonlyIndexes,
})   // Ensure writableIndexes and readonlyIndexes are unmodifiable.
: writableIndexes = List<int>.unmodifiable(writableIndexes),
      readonlyIndexes = List<int>.unmodifiable(readonlyIndexes);