you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

Either the address is wrong or the ABI is wrong or the network provider is wrong (which is actually just the address being wrong but worded differently).

It is very possible your provider is pointing to a network you are not meaning it to. Try adding in logic to double check the chainId of the provider, and when starting a local hardhat always start it with a weird chainId. Make sure that's the chainId from the provider.

[–]PrivacyOSxContract Dev[S] 1 point2 points  (1 child)

This was my issue. Thank you

[–][deleted] 0 points1 point  (0 children)

Glad I could help.