StakePoolWithdrawSolLayout.fromBuffer constructor

StakePoolWithdrawSolLayout.fromBuffer(
  1. List<int> bytes
)

Implementation

factory StakePoolWithdrawSolLayout.fromBuffer(List<int> bytes) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: bytes,
      instruction: StakePoolProgramInstruction.withdrawSol.insturction);
  return StakePoolWithdrawSolLayout(poolTokens: decode["poolTokens"]);
}