We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
L1ERC20Bridge, L2ERC20Bridge 의 연동에 파악한다.
-l1 token address 를 salt 로 사용하는 create2 를 사용하여 standardToken 을 배포한다. -생성된 주소는 provider.l2TokenAddress 를 통해 얻을 수 있다.
https://era.zksync.io/docs/api/js/accounts-l1-l2.html#inputs-and-outputs
const usdcDepositHandle = await wallet.deposit({ token: USDC_ADDRESS, amount: "10000000", approveERC20: true, }); await usdcDepositHandle.wait();
approve 과정 또는 플래그가 필요하지 않으며, utils.ETH_ADDRESS 를 사용하는 것을 제외하면 토큰 deposit과 동일하다.
const withdrawL2 = await wallet.withdraw({ to: wallet.address, token: l2FunToken, amount: ethers.utils.parseEther("1"), }); // Wait until the deposit is processed on zkSync const receipt = await withdrawL2.waitFinalize(); console.log('receipt.transactionHash :', receipt.transactionHash); await wallet.finalizeWithdrawal( receipt.transactionHash );
Sorry, something went wrong.
she110ff
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: