Skip to content

Commit e64d36e

Browse files
committed
info on message length
1 parent 2a14ceb commit e64d36e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/pages/developers/chains/zetachain.mdx

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ withdraw tokens, use the ZetaChain gateway.
44
The ZetaChain gateway supports:
55

66
- Withdrawing ZRC-20 tokens as native gas or ERC-20 tokens to connected chains.
7-
- Withdrawing ZETA tokens to connected chains.
87
- Withdrawing tokens and making a contract call on connected chains.
98
- Calling contracts on connected chains.
109

10+
Note: Withdrawing ZETA tokens is currently not supported and will revert with
11+
`ZETANotSupported()`.
12+
1113
## Withdraw ZRC-20 Tokens
1214

1315
To withdraw ZRC-20 tokens to an EOA or a contract on a connected chain, use the
@@ -31,6 +33,8 @@ address is chain-agnostic. When withdrawing to an EVM chain, ensure you convert
3133
The `amount` specifies the quantity to withdraw, and `zrc20` is the ZRC-20
3234
address of the token being withdrawn.
3335

36+
The `revertOptions.revertMessage` must not exceed 1024 bytes in length.
37+
3438
You don't need to specify the destination chain since each ZRC-20 token is tied
3539
to the chain from which it was deposited. A ZRC-20 token can only be withdrawn
3640
to its originating chain. For example, to withdraw ZRC-20 USDC.ETH to the BNB
@@ -49,6 +53,9 @@ This function withdraws tokens and makes a call to a contract on the connected
4953
chain identified by the `zrc20` address. For instance, if ZRC-20 ETH is
5054
withdrawn, the call is made to a contract on Ethereum.
5155

56+
The combined length of `message` and `revertOptions.revertMessage` must not
57+
exceed 1024 bytes.
58+
5259
## Call a Contract on a Connected Chain
5360

5461
To call a contract on a connected chain without withdrawing tokens, use the
@@ -62,6 +69,9 @@ Here, `zrc20` represents the ZRC-20 token address of the gas token for the
6269
destination chain. This address acts as an identifier for the target chain. For
6370
example, to call a contract on Ethereum, use the ZRC-20 ETH token address.
6471

72+
The combined length of `message` and `revertOptions.revertMessage` must not
73+
exceed 1024 bytes.
74+
6575
## Call Options
6676

6777
The `CallOptions` parameter specifies details for making calls to contracts on

0 commit comments

Comments
 (0)