CompiledInstruction constructor

CompiledInstruction({
  1. required int programIdIndex,
  2. required List<int> accounts,
  3. required List<int> data,
})

Constructor to create a CompiledInstruction instance.

Implementation

CompiledInstruction(
    {required this.programIdIndex,
    required List<int> accounts,
    required List<int>
        data}) // Ensure data and accounts lists are unmodifiable.
    : data = List<int>.unmodifiable(data),
      accounts = List<int>.unmodifiable(accounts);