CCD Block Hash Result View

Hi ,
I have come across an issue, regarding the block hash viewability. Recently concordium changed the result which was being displayed on the rpc.waitForTransactionFinalization(). Now we are getting a block hash for the result rather than the actual status. Please tell me How do I resolve this because I need the actual error for error handling.

code:
export const call_contract = async (
param: string | number | boolean | { [key: string]: SmartContractParameters } | SmartContractParameters,
method: string,
amount: string | number | bigint | boolean
) => {
const { provider, account } = await initialize();
const rpc = provider.getGrpcClient();
if (!account) {
alert(“Please connect”);
}

try {
    const schemaBuffer = Buffer.from(CIS2_MINT_Module_Schema, "base64");
    const serializedParams = serializeUpdateContractParameters(
        MINT_CIS2_CONTRACT_NAME,
        method,
        param,
        schemaBuffer,
        SchemaVersion.V1
    );
    if (account) {
        // const walletExport = PRIVATE_KEY;
        // const sender = new AccountAddress(walletExport.value.address);
        // console.log(sender);

        const txnHash = await provider.sendTransaction(
            account,
            AccountTransactionType.Update,
            {
                address: {
                    index: MINT_INDEX,
                    subindex: SUB_INDEX,
                },
                // message: serializedParams,
                amount: new CcdAmount(BigInt(amount ?? 0)),
                // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
                receiveName: `${MINT_CIS2_CONTRACT_NAME}.${method}`,
                maxContractExecutionEnergy: MAX_CONTRACT_EXECUTION_ENERGY_MINT,
            },
            param,
            schemaBuffer.toString("base64")
        );
        // console.log(txnHash);
        const tx_finalization = await rpc.waitForTransactionFinalization(txnHash);
        return tx_finalization;
    }
} catch (err) {
    console.log("Current issue:");
    console.log(err);
}

};

Can you clarify which versions you are using:

There was a breaking change in:
waitForTransactionFinalization now returns a BlockItemSummaryInBlock

Here is an example how the function is used in code: