renewPortrait()
/**
* Renew the Collective Portrait.
*
* @remarks
* Renewing the Collective Portrait will renew the Collective Portrait for the number of years specified.
* Anyone can renew the Collective Portrait.
*
* @param {number} payableAmount - The amount of ether to pay for the renewal.
* @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to renew.
* @param {number} years - The number of years to renew the Collective Portrait for.
* @returns {ethers.ContractTransaction} - The transaction object of the transaction that renews the Collective Portrait.
* @beta
* @async
*/
renewPortrait(
payableAmount: number,
identity: CollectivePortraitName | number,
years: number,
): Promise<ethers.ContractTransaction> {
const id =
typeof identity === 'number' ? this.getNameByTokenId(identity) : identity;
return this.portrait.portraitCollectiveContract.renewPortrait(
payableAmount,
id,
years,
);
}
Last updated