Getting Contract Address

To register NFT factory contracts, we must get the governance contract address first. This could be accomplished via Provider.getContractAddress().

const { mainContract, govContract } = provider.getContractAddress();
interface ContractAddress {
    mainContract: string;
    govContract: string;
}

/* Provider. */
getContractAddress(): Promise<ContractAddress>;

Last updated