ProjectSmartContract Code related to a question asked on stack-overflow https://stackoverflow.com/q/66644922/10597670