Function near_primitives::utils::create_receipt_id_from_receipt[][src]

pub fn create_receipt_id_from_receipt(
    protocol_version: ProtocolVersion,
    receipt: &Receipt,
    prev_block_hash: &CryptoHash,
    block_hash: &CryptoHash,
    receipt_index: usize
) -> CryptoHash

Creates a new Receipt ID from a given receipt, a block hash and a new receipt index. This method is backward compatible, so it takes the current protocol version.