import { ethers } from "ethers"; //This will return a string. May need to handle the promise in a different way in order to return an actual bool instead of string export const getHasRole = async ( reliquaryContract: ethers.Contract, role: any, account: string ) => { try { const hasRole = await reliquaryContract.hasRole(role, account); return hasRole.toString(); } catch (error) { return error; } };