Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I call quoteSend successfully in merlin test, but fail when deployed to merlin Mainnet. Why? #122

Open
hzlgit opened this issue Nov 14, 2024 · 1 comment

Comments

@hzlgit
Copy link

hzlgit commented Nov 14, 2024

No description provided.

@hzlgit
Copy link
Author

hzlgit commented Nov 14, 2024

from Merlin 0xdbF3D2A6AcB69255e39D76CA1837850BFd88052b
to BSC 0x4FD67c2D9e8c4fDd9C66954bafe124Ca50fC1819

    const options = Options.newOptions().addExecutorLzReceiveOption(200000, 0).toHex().toString()
    const tokensToSend = ethers.utils.parseEther('1')
    const sendParam = [
        EndpointId.BSC_V2_MAINNET,
        ethers.utils.zeroPad(owner.address, 32),
        tokensToSend,
        tokensToSend,
        options,
        '0x',
        '0x',
    ]
    const [nativeFee] = await Lock.quoteSend(sendParam, false)
    console.log('fee', nativeFee)

quoteSend Error: call revert exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant