Bridge SDK problem

Hello everyone,

I trying to convert ONE native token to BSC One token through ethhmy-bridge.sdk and have a problem with it.
I used example code ethhmy-bridge.sdk/one_to_eth-node.js at main · harmony-one/ethhmy-bridge.sdk · GitHub, set oneAddress to my address harmony, ethAddress - to my BSC address, erc20Address - to erc20 token address in BSC testnetwork 0x213871b4836570D13Cac558bf5903D5619943A32. But converti is rejected, here is the log:

[ERC20: ONE_TO_ETH] test ERC20: ONE_TO_ETH
[ERC20: ONE_TO_ETH] ONE balance before: 0
[ERC20: ONE_TO_ETH] ETH balance before: 100
[ERC20: ONE_TO_ETH] create operation
[ERC20: ONE_TO_ETH] Operation: one_to_eth
[ERC20: ONE_TO_ETH] Token: erc20
[ERC20: ONE_TO_ETH] ERC20 address: 0x213871b4836570D13Cac558bf5903D5619943A32
[ERC20: ONE_TO_ETH] Amount: 100
[ERC20: ONE_TO_ETH] ONE address: one1rzxk2gw20…
[ERC20: ONE_TO_ETH] ETH address: 0xDce7310d…
[ERC20: ONE_TO_ETH] create operation
[ERC20: ONE_TO_ETH] operation ID: 4ace5044-…
[ERC20: ONE_TO_ETH] depositOne
[ERC20: ONE_TO_ETH] Status: called
[ERC20: ONE_TO_ETH] depositOne
[ERC20: ONE_TO_ETH] approveHmyManger
[ERC20: ONE_TO_ETH] Status: called
[ERC20: ONE_TO_ETH] approveHmyManger
[ERC20: ONE_TO_ETH] burnToken
[ERC20: ONE_TO_ETH] Status: rejected
[ERC20: ONE_TO_ETH] burnToken
[ERC20: ONE_TO_ETH] unlockToken (1200 sec)
[ERC20: ONE_TO_ETH] waiting unlockToken
[ERC20: ONE_TO_ETH] waiting unlockToken

How can i see the sdk, don’t see my ONE balance.
If I do convert in https://testnet.bridge.hmny.io/ all is fine.

Maybe someone can help me and say what i do wrong, maybe i did’t understand some aspects

Thanks for answers

sorry for the delay. help is on the way. our sdk developer Yuriy will reach out here.

@seregaw are you able to share the operation id and code snippet to further understand your issue?

Hello, thanks for the reply. I think I understand cause of error. I checked source of bridge.harmony.one and already realized that SDK does not currently support this direction of exchange and in the Bridge API docs it’s missed too, so i used source code bridge.harmony.one and now all work fine for me.
Thanks again for the feedback