mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-04-30 12:21:57 +08:00
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:
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user