All contract calls returning null

by Jonah   Last Updated July 12, 2019 00:28 AM - source

I'm building a browser extension that uses web3.js over websocket to Infura and for some reason all my contract calls are returning null in my production build. When testing the app as a web app in the browser all calls work just fine. But when I build and load the app as an extension, all calls just silently return null without any errors or warnings. There are no CORS warnings or errors either, so that doesn't seem to be the issue.

My question is what all could cause a contract call to return null?

It's a bit annoying that I have to ask this question because there should be an error but instead it silently just returns null

Tags : web3js


Related Questions


How to get private key with web3 v0.2.x?

Updated January 06, 2019 18:28 PM


Which version of web3 shall i be using now?

Updated August 09, 2019 05:28 AM


subscriptions in Geth or Parity

Updated September 04, 2019 13:28 PM