import { ethers } from "ethers"; //Still need to improve this after understanding the bytes32 input and output //toString() will likely not work for byte32, will need to encode/decode export const getRoleAdmin = async ( reliquaryContract: ethers.Contract, role: any ) => { try { const admin = await reliquaryContract.getRoleAdmin(role); return admin.toString(); } catch (error) { return error; } };