Fix viem module import error preventing on-chain scans; run unit tests and restore scan functionality