You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have tried calling paymaster on test net and main net as well as local setup and everything worked. Also you need to wait for transaction, some fields like block number will be null until its not mined on L2. Difference between transactionReceipt and transactionResponse that response has transaction hash which you can use to wait for certain states of transaction and you can get transactionReceipt only of already mined transaction.
Here you can check how we use wait() :
I see this is the ethers problem, it also returns null for the properties that are typed to be required.
I createn an issue in ethers repo: ethers-io/ethers.js#4891
🐛 Bug Report for zksync-ethers JavaScript SDK
📝 Description
broadcastTransaction
promises to returnTransactionResponse
:zksync-ethers/src/types.ts
Line 193 in dcbb663
It in fact returns an object that doesn't satisfy this type (e.g. blockNumber, blockHash and gasPrice values are
null
, but must be defined):🤔 Expected Behavior
The library is expected to honour the types it provides
😯 Current Behavior
It doesn't.
🖥️ Environment
📋 Additional Context
Browser: Chrome
The text was updated successfully, but these errors were encountered: