fromWallet static method
BuyMembership
fromWallet({
- required Wallet wallet,
- required MembershipType membershipType,
- required String tsp,
Creates a BuyMembership from the given wallet
,
membershipType
and tsp
address.
Implementation
static BuyMembership fromWallet({
required Wallet wallet,
required MembershipType membershipType,
required String tsp,
}) {
return BuyMembership(
buyerDid: wallet.bech32Address,
membershipType: membershipType.value,
tsp: tsp,
);
}