change hasBase to bool return as intended and add check for native contracts to simulated call (for query-contract)