fix: use UnsupportedBridgeRouteError for EVM to Tron bridge

Replace generic Error with UnsupportedBridgeRouteError in bridgeFromEVM_toTron function to maintain consistency with error handling patterns throughout the codebase and provide structured error information.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Kyle Fang
2025-10-27 09:39:36 +08:00
parent 1c237ec0dc
commit 588f540515

View File

@@ -586,8 +586,11 @@ async function bridgeFromEVM_toTron(
> &
KnownRoute_FromEVM_ToTron,
): Promise<BridgeFromEVMOutput> {
throw new Error(
`Not implemented, ${info.toToken} EVM to TRON need contract update`,
throw new UnsupportedBridgeRouteError(
info.fromChain,
info.toChain,
info.fromToken,
info.toToken,
)
}