pub enum TokenManagerType {
    NativeInterchainToken,
    MintBurnFrom,
    LockUnlock,
    LockUnlockFee,
    MintBurn,
    Gateway,
}
    pub fn abi_decode(payload: &[u8]) -> Result<Self, Report<Error>> {
        // ..snip
let token_manager_type = u8::try_from(decoded.tokenManagerType)//@audit
    .change_context(Error::InvalidTokenManagerType)?
    .then(TokenManagerType::from_repr)
    .ok_or_else(|| Report::new(Error::InvalidTokenManagerType))?;
        // ..snip
    }
    pub fn abi_decode(payload: &[u8]) -> Result<Self, Report<Error>> {
        // ..snip
- let token_manager_type = u8::try_from(decoded.tokenManagerType)
+ let token_manager_type = u32::try_from(decoded.tokenManagerType)
    .change_context(Error::InvalidTokenManagerType)?
    .then(TokenManagerType::from_repr)
    .ok_or_else(|| Report::new(Error::InvalidTokenManagerType))?;
        // ..snip
    }
if decoded.tokenManagerType > U256::from(u8::MAX) {
    return Err(Report::new(Error::InvalidTokenManagerType));
}
let token_manager_type = u8::try_from(decoded.tokenManagerType)
    .expect("Value checked to be within u8 range")
    .then(TokenManagerType::from_repr)
    .ok_or_else(|| Report::new(Error::InvalidTokenManagerType))?;
