I am using selfdestruct method and passing the payable address to it but receiving the following error when trying to get the value of a state variable : "Error: Returned values aren't valid, did it run Out of Gas?"
Do the value of state variables will get cleared on using self destruct or we can not access the variable after using selfdestruct method.
solidity version: v0.5.8
Tutorial followed: "Code your own crypto currency on Ethereum" by Gregory(lecture 10) on udemy