mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-04-30 12:21:57 +08:00
fix: fix bridgeFromEVM_toLaunchpad error details
This commit is contained in:
@@ -726,6 +726,9 @@ export async function bridgeFromEVM_toLaunchpad(
|
||||
info.fromChain,
|
||||
info.fromToken,
|
||||
)
|
||||
const stacksChain = KnownChainId.isEVMMainnetChain(info.fromChain)
|
||||
? KnownChainId.Stacks.Mainnet
|
||||
: KnownChainId.Stacks.Testnet
|
||||
if (
|
||||
bridgeEndpointAddress == null ||
|
||||
fromTokenContractInfo == null ||
|
||||
@@ -733,7 +736,7 @@ export async function bridgeFromEVM_toLaunchpad(
|
||||
) {
|
||||
throw new UnsupportedBridgeRouteError(
|
||||
info.fromChain,
|
||||
info.receiverChain,
|
||||
stacksChain,
|
||||
info.fromToken,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user