zksync-sdk / zksync2-examples

Examples on how to interact with zkSync Era network using SDKs for different languages.
MIT License
27 stars 16 forks source link

In the python example, the withdrawal initiated transaction is the old Txn Type: 0 (Legacy) transaction mode #13

Open wt195799611 opened 7 months ago

wt195799611 commented 7 months ago

🐛 Bug Report for zksync2-py python SDK

📝 Description

I haven't tried anything else yet, but when I looked at the block browser after using the script for L2 withdrawal to L1 mentioned in the example, it showed that the transaction mode was the old Txn Type: 0 (Legacy) instead of the more gas efficient Txn Type: 2 (EIP-1559).

🔄 Reproduction Steps

  1. L2 withdraw ETH to L1.

🤔 Expected Behavior

Transactions should use the more gas efficient EIP-1559

😯 Current Behavior

Actually used the old Legacy

🖥️ Environment

python 3.10.0 zksync2 1.0.0

danijelTxFusion commented 7 months ago

Legacy types was used before in order to be compatible with previous version. The plan is to switch to custom EIP712 transaction type which requires the smallest gas among all types (Legacy, London, EIP712).