grantCallingContractRole_Utility(config, rulesEngineAdminContract, contractAddress, adminAddress): Promise<void>

UTILITY FUNCTION - used to mimic the contract setting the initial calling contract admin (used for testing purposes)

Parameters

ParameterTypeDescription
configConfig-
rulesEngineAdminContractobjectThe contract instance containing the address and ABI
rulesEngineAdminContract.abi(object | object | object)[]-
rulesEngineAdminContract.address`0x${string}`-
contractAddress`0x${string}`address of the “contract” must also be the address calling this function
adminAddress`0x${string}`The address to make the initial calling contract admin

Returns

Promise<void>

Defined in

src/modules/admin.ts:154