SystemCreateWithSeedLayout.fromBuffer constructor
SystemCreateWithSeedLayout.fromBuffer(
- List<int> data
)
Implementation
factory SystemCreateWithSeedLayout.fromBuffer(List<int> data) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: SystemProgramInstruction.createWithSeed.insturction);
return SystemCreateWithSeedLayout(
base: decode["base"],
seed: decode["seed"],
lamports: decode["lamports"],
space: decode["space"],
programId: decode["programId"]);
}