Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

If tx is null, the deployment will be broken. #3960

Closed
guanzhenxing opened this issue Apr 2, 2021 · 2 comments
Closed

If tx is null, the deployment will be broken. #3960

guanzhenxing opened this issue Apr 2, 2021 · 2 comments

Comments

@guanzhenxing
Copy link

guanzhenxing commented Apr 2, 2021

const balance = await data.contract.interfaceAdapter.getBalance(tx.from);

When I deploy contracts to Arbitrum Testnet, it often happens that tx is null. When tx==null, the deployment will run down!

This might happen on some nodes that use load balancing. The user is not connecting to the same node at the time of deployment as the node at the time of query, and the data on those nodes is out of sync.

I added if (!tx) return this.postDeploy(data); in my local area and it works fine, please evaluate if it can be modified in this way.

@eggplantzzz
Copy link
Contributor

Hey @guanzhenxing, can you give us more info on how this fails?

@cds-amal
Copy link
Member

Hi @guanzhenxing, we're closing this for issue maintenance. Please comment if you'd like us to reopen. thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants