MetaplexGumdropClaimLayout.fromBuffer constructor
MetaplexGumdropClaimLayout.fromBuffer(
- 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());
}