StakeWithdrawLayout.fromBuffer constructor

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

Implementation

factory StakeWithdrawLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: StakeProgramInstruction.withdraw.insturction);
  return StakeWithdrawLayout._(decode["lamports"]);
}