JoinColony / purser

Interact with Ethereum wallets easily
https://joincolony.github.io/purser
MIT License
84 stars 21 forks source link

Fix `await on null` error #342

Closed rdig closed 3 years ago

rdig commented 3 years ago

This PR fixes the await on null issues we were seeing using Infura's provider.

This was done by intercepting the response and in case it's null, just return undefined since poll() will retry on an undefined response.