TokenLendingWithdrawObligationCollateralLayout.fromBuffer constructor
TokenLendingWithdrawObligationCollateralLayout.fromBuffer(
- List<int> data
)
Implementation
factory TokenLendingWithdrawObligationCollateralLayout.fromBuffer(
List<int> data) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: TokenLendingProgramInstruction
.withdrawObligationCollateral.insturction);
return TokenLendingWithdrawObligationCollateralLayout(
collateralAmount: decode["collateralAmount"]);
}