PrimarySale
Functionality available for contracts that inherit the PrimarySale
contract.
get_recipient
Get the primary sale recipient.
primary_sale_recipient = contract.sales.get_recipient()
print(primary_sale_recipient)
Configuration
Return Value
Returns a string
of the wallet address of the primary sale recipient.
class ContractPrimarySaleSchema:
primary_sale_recipient: str = ZERO_ADDRESS
set_recipient
Set the primary sale recipient.
primary_sale_recipient = "0x7fDae677aA6f94Edff9872C4b91D26407709c790"
receipt = contract.sales.set_recipient(primary_sale_recipient)