From 19b9ced779a20d14d625fb361182de9b2257cba4 Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Mon, 6 Jun 2022 09:59:31 +0200 Subject: [PATCH] rename Roles to DatatokenRoles --- src/@types/Erc20.ts | 2 +- src/contracts/tokens/Datatoken.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/@types/Erc20.ts b/src/@types/Erc20.ts index 15715c98..96cdb2bb 100644 --- a/src/@types/Erc20.ts +++ b/src/@types/Erc20.ts @@ -24,7 +24,7 @@ export interface PublishingMarketFee { publishMarketFeeAmount: string } -export interface Roles { +export interface DatatokenRoles { minter: boolean paymentManager: boolean } diff --git a/src/contracts/tokens/Datatoken.ts b/src/contracts/tokens/Datatoken.ts index 53779474..962937b4 100644 --- a/src/contracts/tokens/Datatoken.ts +++ b/src/contracts/tokens/Datatoken.ts @@ -21,7 +21,7 @@ import { PublishingMarketFee, DispenserParams, OrderParams, - Roles + DatatokenRoles } from '../../@types' import { Nft } from './NFT' import { Config, ConfigHelper } from '../../config' @@ -1215,9 +1215,12 @@ export class Datatoken { /** Returns ERC20 user's permissions for a datatoken * @param {String} dtAddress Datatoken adress * @param {String} address user adress - * @return {Promise} + * @return {Promise} */ - public async getDTPermissions(dtAddress: string, address: string): Promise { + public async getDTPermissions( + dtAddress: string, + address: string + ): Promise { const dtContract = setContractDefaults( new this.web3.eth.Contract(this.datatokensAbi, dtAddress), this.config