isContractAddress
@midnight-ntwrk/compact-runtime v0.14.0
@midnight-ntwrk/compact-runtime / isContractAddress
Function: isContractAddress()
function isContractAddress(x): x is string;
Tests whether the input value is a ContractAddress, i.e., string.
Parameters
x
unknown
The value that is tested to be a ContractAddress.
Returns
x is string