MetaplexHydraAddMemberWalletLayout.fromBuffer constructor

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

Implementation

factory MetaplexHydraAddMemberWalletLayout.fromBuffer(List<int> data) {
  final decode = MetaplexHydraProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction:
          MetaplexHydraProgramInstruction.processAddMemberWallet.insturction);
  return MetaplexHydraAddMemberWalletLayout(shares: decode["shares"]);
}