Skip to content

Execution is not stopping on sendTransaction of hashconnect #218

@gauraverma61

Description

@gauraverma61

dont get any result from sendTransaction and it not stopping execution
export const executeTransaction = async (
accountIdForSigning: AccountId,
trans: Transaction
) => {
await hcInitPromise;

const accountIds = getConnectedAccountIds();
if (!accountIds) {
    throw new Error("No connected accounts");
}

const isAccountIdForSigningPaired = accountIds.some(
    (id) => id.toString() === accountIdForSigning.toString()
);
if (!isAccountIdForSigningPaired) {
    throw new Error(`Account ${accountIdForSigning} is not paired`);
}

const result = await hc.sendTransaction(accountIdForSigning, trans);
return result;

};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions