Function: getContractId()
function getContractId(contextTx): HashId;
Function to get the contract ID from a transaction context.
Parameters
• contextTx: L2TxResolved
The transaction context.
Returns
The contract ID.
Throws
Will throw an error if the resolved reference is not version 0.