SystemAuthorizeNonceAccountLayout.fromBuffer constructor

SystemAuthorizeNonceAccountLayout.fromBuffer(
  1. List<int> data
)

Implementation

factory SystemAuthorizeNonceAccountLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction:
          SystemProgramInstruction.authorizeNonceAccount.insturction);
  return SystemAuthorizeNonceAccountLayout(authorized: decode["authorized"]);
}