-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
To recreate:
Try to spend a transaction with insufficient funds:
try {
const tx = provider
.transaction()
.to(PAYMENT_ADDRESS)
.amount(fee * 65536)
.build();
const txId = await provider.sendTransaction(tx);
setTransactionHash(txId);
setTransactionStatus("pending");
setStatusText(
`Transaction sent! Waiting for confirmation...\nTransaction Hash: ${txId}`
);
} catch (error) {
setTransactionStatus("failed");
setStatusText("Failed to send transaction: " + error.message);
}
The error coming back from provider is a string "Error: [object Object]" when it should be an object with message property.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels