optimism icon indicating copy to clipboard operation
optimism copied to clipboard

Error: withdrawal index 0 out of bounds. There are 0 withdrawals

Open ahyammona opened this issue 1 year ago • 3 comments

          ^

Error: withdrawal index 0 out of bounds. There are 0 withdrawals at CrossChainMessenger.toCrossChainMessage (C:\Users\Asus\Projects\AUTOMATED-TELEGRAM-BOT\InhumaneBot(public)\node_modules@eth-optimism\sdk\src\cross-chain-messenger.ts:676:15) at processTicksAndRejections (node:internal/process/task_queues:

please any help would do

ahyammona avatar Apr 11 '24 07:04 ahyammona

Hola sabes qe tengo un token el metamask de 3 WLD y no puedo retirarlo

Diegomiguelvidela avatar Apr 12 '24 19:04 Diegomiguelvidela

cc @smartcontracts

tynes avatar Apr 15 '24 23:04 tynes

@ahyammona you should give more context on what you are doing. My guess is that you are using waitForMessageReceipt wrong.

You should only use waitForMessageReceipt for cross chain messages (deposit and withdraw).

If you are trying to wait for example erc20 tx, make sure you use tx.wait()

danielsimao avatar Apr 18 '24 11:04 danielsimao

The sdk is no longer maintained

tynes avatar Jun 17 '24 22:06 tynes