Skip to content

Commit

Permalink
chore: fix java docs
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Jun 7, 2024
1 parent f5eb099 commit 6ae9a8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/zksync/protocol/ZkSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ Request<?, ZksBlock> zksGetBlockByNumber(
* Returns the L2 token address equivalent for a L1 token address as they are not necessarily equal.
* The ETH address is set to the zero address.
*
* @remarks Only works for tokens bridged on default zkSync Era bridges.
* Only works for tokens bridged on default zkSync Era bridges.
*
* @param token The address of the token on L1.
* @param tokenAddress The address of the token on L1.
*/
String l2TokenAddress(String tokenAddress);

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/io/zksync/protocol/account/WalletL1.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public CompletableFuture<BigInteger> getBalanceL1Async(String address, String to
* @param token The L1 address of the token.
* @param amount The amount of the token to be approved.
* @param bridgeAddress Bridge address to be used.
* @throws {Error} If attempting to approve an ETH token.
* @returns A promise that resolves to the response of the approval transaction.
* @throws Error If attempting to approve an ETH token.
* @return A promise that resolves to the response of the approval transaction.
*/
public RemoteFunctionCall<TransactionReceipt> approveERC20(String token, @Nullable BigInteger amount, @Nullable String bridgeAddress) {
if (ZkSyncAddresses.isEth(token)){
Expand Down Expand Up @@ -223,7 +223,7 @@ public RemoteFunctionCall<BigInteger> getAllowanceL1(String token, @Nullable Str
* Returns the L2 token address equivalent for a L1 token address as they are not necessarily equal.
* The ETH address is set to the zero address.
*
* @remarks Only works for tokens bridged on default zkSync Era bridges.
* Only works for tokens bridged on default zkSync Era bridges.
*
* @param l1Address The address of the token on L1.
*/
Expand All @@ -238,7 +238,7 @@ private EthSigner getSigner() {
/**
* Returns L1 bridge contracts.
*
* @remarks There is no separate Ether bridge contract, {@link } is used instead.
* There is no separate Ether bridge contract, {@link } is used instead.
*/
public L1BridgeContracts getL1BridgeContracts(){
BridgeAddresses bridgeAddresses = providerL2.zksGetBridgeContracts().sendAsync().join().getResult();
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/io/zksync/utils/ZkSyncAddresses.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ public final class ZkSyncAddresses {

/**
* The address of the L1 `ETH` token.
* @constant
*/
@Deprecated
public static final String ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
/**
* The address of the L1 `ETH` token.
* @constant
*/
public static final String LEGACY_ETH_ADDRESS = "0x0000000000000000000000000000000000000000";

/**
* In the contracts the zero address can not be used, use one instead
* @constant
*/
public static final String ETH_ADDRESS_IN_CONTRACTS = "0x0000000000000000000000000000000000000001";
public static final String CONTRACT_DEPLOYER_ADDRESS = "0x0000000000000000000000000000000000008006";
Expand All @@ -26,7 +23,6 @@ public final class ZkSyncAddresses {
public static final String L2_ETH_TOKEN_ADDRESS = "0x000000000000000000000000000000000000800a";
/**
* The address of the base token.
* @constant
*/
public static final String L2_BASE_TOKEN_ADDRESS = "0x000000000000000000000000000000000000800a";
public static final String BOOTLOADER_FORMAL_ADDRESS = "0x0000000000000000000000000000000000008001";
Expand Down

0 comments on commit 6ae9a8a

Please sign in to comment.