MetaplexGumdropClaimLayout.fromBuffer constructor

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

Implementation

factory MetaplexGumdropClaimLayout.fromBuffer(List<int> data) {
  final decode = MetaplexGumdropProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: MetaplexGumdropProgramInstruction.claim.insturction);
  return MetaplexGumdropClaimLayout(
      bump: decode["bump"],
      index: decode["index"],
      amount: decode["amount"],
      claimantSecret: decode["claimantSecret"],
      proof: (decode["proof"] as List).cast());
}