[SDK] Clarification for necessity to replace several functions in ethers #346
-
EnvironmentTestnet Acknowledgement
Issue DescriptionSome utils are not implemented or override in zksync-ethers, I wonder if I can just use ethers' implementation.
Expected BehaviorN/A Code ExampleN/A Repo Link (Optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
Has this been resolved ? |
Beta Was this translation helpful? Give feedback.
-
In the context of using zksync-ethers, if certain utilities or functionalities are not implemented or overridden, you can indeed resort to using the corresponding functionalities from the ethers.js library directly. Let's address each of the specific functions you mentioned: ethers.utils.getAddress(): ethers.constants.AddressZero: ContractReceipt: ContractTransaction: |
Beta Was this translation helpful? Give feedback.
-
Interesting |
Beta Was this translation helpful? Give feedback.
-
@NOOMA-42 Hey! Could you please provide an explanation of the problem you're facing? From the provided description it is not really clear what the issue is. An example of your code or sharing your repo would be very helpful. |
Beta Was this translation helpful? Give feedback.
@NOOMA-42 most of simple utilities, such as
getAddress
, or constants likeAddressZero
, can be directly exported from theethers
package. Thezksync-ethers
may prove useful for actions specifically related to zkSync (e.g., deposit/withdraw methods) or when interacting with signers and providers.