@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
13 lines • 513 B
JavaScript
import { getMainAccount } from "@ledgerhq/ledger-wallet-framework/account/index";
import { getAccountBridge } from "../bridge";
export { getReceiveFlowError, checkAccountSupported, } from "@ledgerhq/ledger-wallet-framework/account/support";
export function canSend(account, parentAccount) {
try {
getAccountBridge(account, parentAccount).createTransaction(getMainAccount(account, parentAccount));
return true;
}
catch {
return false;
}
}
//# sourceMappingURL=support.js.map