fix transaction type check
cleaned up SHA3